PDA

View Full Version : GL_RENDER returns null



Vincent22
04-24-2012, 09:44 AM
Hi everyone, I' creating a simple project using opengl with glut. I use Xcode 4 on Lion OS.

I try to print GL_RENDER but I get "null". What exaclty it means? It's a bad thing?
this is the code line:

printf("renderer OpenGL: %s\n", glGetString(GL_RENDER));


I put the code line after created gl context

Vincent22
04-24-2012, 10:06 AM
sorry stupid error.

I should write "GL_RENDERER" instead of "GL_RENDER"

mbentrup
04-24-2012, 01:32 PM
Usually that means that no GL context is current on the calling thread.