This project is read-only.

Unable to get the GL version

Jun 15, 2013 at 2:32 PM
I am trying to get the GL version using this code:

var s = gl.GetString(OpenGL.GL_VERSION);

I expected a string with length greater than 3 but what is returned is an empty string.

Any idea what I am doing wrong?


Jun 15, 2013 at 2:43 PM
Never mind.

I was trying to get this information before initializing the GL.