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

Author Topic: OpenGL errors with SFML 2.0  (Read 1281 times)

0 Members and 1 Guest are viewing this topic.

CubanPete

  • Newbie
  • *
  • Posts: 1
    • View Profile
OpenGL errors with SFML 2.0
« 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:



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
« Last Edit: May 27, 2012, 11:08:42 am by CubanPete »

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: OpenGL errors with SFML 2.0
« Reply #1 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 :/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: OpenGL errors with SFML 2.0
« Reply #2 on: May 27, 2012, 08:14:42 pm »
This is a known bug (it happens when you use sf::Text with the default font).
Laurent Gomila - SFML developer