From 4c0e946da3bbc7c24062984467b419cbd8ed0c30 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 21 Mar 2013 01:18:07 +0100 Subject: [PATCH] Added possible ES3 bit. --- src/egl_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/egl_context.c b/src/egl_context.c index 6b7481c6..df517f7e 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -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);