Anyone got a clue why glGetString(GL_VERSION) would be sending back a single “0” instead of the version it should be? This is on WinXP Home Edition. Everything works, I just wanted to put some detection in for systems that do not support 1.2 and above.
For any OpenGL-function to work, you need to have a rendering context. You usually create a rendering contex when you create a window. So in short, you need to create a window before you can call glGetString.
Thanks fella’s but I finally got it. All of a sudden the light in the fridge came on. The number that is returned is the pointer to the string. So I just used a couple of apis to retrive and converts the pointer to a VB string and <Bam> got the string I needed.