Added possible ES3 bit.

This commit is contained in:
Camilla Berglund 2013-03-21 01:18:07 +01:00
parent 9843666e1c
commit 4c0e946da3

View File

@ -176,6 +176,9 @@ int _glfwCreateContext(_GLFWwindow* window,
if (wndconfig->glMajor == 2)
setEGLattrib(EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT);
if (wndconfig->glMajor == 3)
setEGLattrib(EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR);
}
setEGLattrib(EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER);