Hi somehow SFML crashes when i use App.Clear();...
#include <SFML/Graphics.hpp>
#include <windows.h>
int main(){
sf::RenderWindow App(sf::VideoMode::GetDesktopMode(), "Test Program", sf::Style::Resize|sf::Style::Close);
App.SetSize(800, 600) ;
while(App.IsOpened()){
sf::Event Event;
while (App.GetEvent(Event)){
if (Event.Type == sf::Event::Closed)
App.Close();
}
//App.Clear(sf::Color(200, 0, 0, 0));
//App.Clear(sf::Color(200, 0, 0));
//App.Clear();
App.Display();
Sleep(100);
}
return 0;
}
Here u can see that i've tryed some different App.Clears..
I'm running MSVC++ 2010 Ult.
- and Linked 3 Libs.
- sfml-graphics.dll
- sfml-system.dll
- sfml-window.dll
- no errors while building
- App. Clear(), no crash.