aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-30 02:19:58 +0200
committerSven Gothel <[email protected]>2015-08-30 02:19:58 +0200
commit365d273115a98ab38c454608448c6639c45b5f74 (patch)
tree292f1f153a21932f1e06d5f69a71b1af0b8af068
parentcda92c2cc066c18ab30b828592e1979ab535441c (diff)
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.
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java5
1 files changed, 4 insertions, 1 deletions
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
}
}