SFML community forums

Help => General => Topic started by: CubanPete on May 27, 2012, 10:50:23 am

Title: OpenGL errors with SFML 2.0
Post by: CubanPete on May 27, 2012, 10:50:23 am
After spending hours fighting with SFML trying to get it to work with VS2010, I've encountered the following error:

(http://i.imgur.com/Z6jox.jpg)

Has anybody encountered this error before, I've found a few results via Google but no answers.


Sort of Solved. Moving that return 0; outside the while loop meant the program worked, though the CMD window still returns the same error
Title: Re: OpenGL errors with SFML 2.0
Post by: Lo-X on May 27, 2012, 05:24:15 pm
First, your "return 0" isn't well placed... With this code you may not even see the window :p
You include 2 files and I don't see why (stdafx and SFML/openGL).

But I don't see why there is an openGL error I can't read the full error message it's not helping

NB: IMO your identation is very bad :/
Title: Re: OpenGL errors with SFML 2.0
Post by: Laurent on May 27, 2012, 08:14:42 pm
This is a known bug (it happens when you use sf::Text with the default font).