mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Added possible ES3 bit.
This commit is contained in:
parent
9843666e1c
commit
4c0e946da3
|
@ -176,6 +176,9 @@ int _glfwCreateContext(_GLFWwindow* window,
|
||||||
|
|
||||||
if (wndconfig->glMajor == 2)
|
if (wndconfig->glMajor == 2)
|
||||||
setEGLattrib(EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT);
|
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);
|
setEGLattrib(EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user