HI,
I am trying to create an OpenGL ES .20 compatibility profile on Windows. According to the spec:
http://developer.download.nvidia.com/opengl/specs/wgl_create_context_es2_profile.txt
If I ask for a 2.0 context and the WGL_CONTEXT_ES2_PROFILE_BIT_EXT is set, I should get an ES 2.0 context. When I use the following code:
GLint attribs = {
WGL_CONTEXT_MAJOR_VERSION_ARB, 2,
WGL_CONTEXT_MINOR_VERSION_ARB, 0,
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_ES2_PROFILE_BIT_EXT,
0 };
_glContext = wglCreateContextAttribsARB( GetDC(_hWnd), 0, attribs);
Calling glGetString(GL_VERSION) states that I have an ES 3.1 context.
Has anyone successfully used this extension?
Any ideas what I could have done wrong here?
Thanks!