|
@@ -173,7 +173,7 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig,
|
|
u->stencilBits = getEGLConfigAttrib(n, EGL_STENCIL_SIZE);
|
|
u->stencilBits = getEGLConfigAttrib(n, EGL_STENCIL_SIZE);
|
|
|
|
|
|
u->samples = getEGLConfigAttrib(n, EGL_SAMPLES);
|
|
u->samples = getEGLConfigAttrib(n, EGL_SAMPLES);
|
|
- u->doublebuffer = GLFW_TRUE;
|
|
|
|
|
|
+ u->doublebuffer = desired->doublebuffer;
|
|
|
|
|
|
u->handle = (uintptr_t) n;
|
|
u->handle = (uintptr_t) n;
|
|
usableCount++;
|
|
usableCount++;
|
|
@@ -596,6 +596,9 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
|
|
setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR);
|
|
setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!fbconfig->doublebuffer)
|
|
|
|
+ setAttrib(EGL_RENDER_BUFFER, EGL_SINGLE_BUFFER);
|
|
|
|
+
|
|
setAttrib(EGL_NONE, EGL_NONE);
|
|
setAttrib(EGL_NONE, EGL_NONE);
|
|
|
|
|
|
window->context.egl.surface =
|
|
window->context.egl.surface =
|