Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: No SFML window  (Read 1779 times)

0 Members and 1 Guest are viewing this topic.

Yelnats

  • Newbie
  • *
  • Posts: 27
    • View Profile
No SFML window
« on: December 21, 2010, 10:17:31 am »
So I just updated my graphics drivers (ATi 5770, 64 bit Win 7) and my project hasn't been working since. Here is minimal code:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>

int main(){
sf::Event events;

sf::RenderWindow App(sf::VideoMode(640, 800, 32), "test");
while(App.IsOpened()){
while (App.GetEvent(events)){
if(events.Type == sf::Event::KeyPressed){
if (events.Key.Code == sf::Key::A) std::cout << "sssSSSsss";
else if (events.Key.Code == sf::Key::Escape) App.Close();
}
}
App.Display();
}
return 0;
}

It compiles, but it doesn't create a renderwindow. SFML 2 by the way.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No SFML window
« Reply #1 on: December 21, 2010, 10:27:57 am »
Yep, I know. So many new bugs with the latest ATI drivers...
Laurent Gomila - SFML developer

Yelnats

  • Newbie
  • *
  • Posts: 27
    • View Profile
No SFML window
« Reply #2 on: December 21, 2010, 06:06:41 pm »
Aww that sucks. Oh well, I'll just rollback until a fix is found.

 

anything