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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jefvel

Pages: [1]
1
Graphics / Font drawing gives GL_INVALID_VALUE[Fixed?]
« on: August 08, 2011, 07:28:07 pm »
for those who also get this somehow, I think I found a solution.
RenderWindow has methods called "saveGLStates" and "RestoreGLStates", which you have to use when mixing raw openGL commands and the sfml drawing commands. Just use them and you'll be fine. Or something.
Bye!

2
Graphics / Font drawing gives GL_INVALID_VALUE[Fixed?]
« on: August 04, 2011, 09:36:58 pm »
Hello. I am trying to make a textrenderer, that renders text with sfml2.0 using a renderwindow and that. The problem is, that when I try to do it, it will output "An internal OpenGL call failed in Renderer.cpp (142) : GL_INVALID_VALUE, a numeric argument is out of range".
But, if I add some code to the main loop that draws some text directly to the window, it all works suddenly, even the textrenderer. I have no idea why it behaves like this. Does anyone else here know?
Thanks.

Pages: [1]
anything