View Full Version : glGetString failing

11-20-2005, 04:08 PM
for some reason when i call glGetString(GL_EXTENSIONS) it's returning null. I've used this before and had no problems. Any ideas?

11-20-2005, 04:18 PM
You need to have a valid context before you call this function, and you can't call it between glBegin() and glEnd() :D

11-20-2005, 04:22 PM
by valid context are you referring to a valid device context or do you mean I need to have set up my pixel format etc.

11-20-2005, 04:27 PM
You need to have a valid OpenGL rendering context (HGLRC). Do you need intruction on creating one? :)

11-20-2005, 04:28 PM
no thank you, I have that covered...I think it might be due to how I'm instantiating my rendering subsystem (I'm doing a particle editor using MFC so I might not be getting it set up in time). Thank you though, you have been very helpful, rating++

11-20-2005, 04:38 PM
Anytime, Morpheus. Good luck with that :)