1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

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);