From 365d273115a98ab38c454608448c6639c45b5f74 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 30 Aug 2015 02:19:58 +0200 Subject: Bug 1203: Fix regression: Handle GLRendererQuirks.GLES3ViaEGLES2Config Need to handle GLRendererQuirks.GLES3ViaEGLES2Config, i.e. a created ES3 context via ES2 request must result in mapping ES3 as well. --- src/jogl/classes/jogamp/opengl/GLContextImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index 5a6c4e068..a5e6bf353 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -1150,7 +1150,10 @@ public abstract class GLContextImpl extends GLContext { if( !hasES2) { hasES2 = createContextARBMapVersionsAvailable(device, 2, CTX_PROFILE_ES); // ES2 success |= hasES2; - if( hasES3 ) { + if( hasES2 ) { + if( ctxVersion.getMajor() >= 3 && hasRendererQuirk(GLRendererQuirks.GLES3ViaEGLES2Config)) { + mapAvailableGLVersion(device, 3, CTX_PROFILE_ES, ctxVersion, ctxOptions, glRendererQuirks); + } resetStates(false); // clean context states, since creation was temporary } } -- cgit v1.2.3