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

Author Topic: GL_INVALID_OPERATION with sf::String  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.

drobole

  • Newbie
  • *
  • Posts: 9
    • View Profile
GL_INVALID_OPERATION with sf::String
« on: December 26, 2009, 06:07:49 pm »
Hello

I see that this issue has been discussed before so I just thought I would add some info about it.

This is what I use:
Windows 7 x64
Visual C++ 2008 express edition
SFML 1.5 (Official stable download)

As soon as I declare a sf::String anywhere in the code I get the following error at program exit:
Code: [Select]

An internal OpenGL call failed in image.cpp (769) : GL_INVALID_OPERATION, the specified operation is not allowed in the
current state


I have also tried with the example code at this location
http://www.sfml-dev.org/tutorials/1.5/sources/graphics-sprite.cpp
and the same happens. As soon as I add a sf::String declaration I get the error.

I downloaded the latest trunc (Some issues with compilation due to my express version but I got the files I needed) but the error is still there.

By the way, the error only shows up when running in debug mode

edit:
After some more testing it seems to be the call to GetDefaultFont()