mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00: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)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user