summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-08-23 07:30:29 +0200
committerSven Gothel <[email protected]>2019-08-23 07:30:29 +0200
commit2c4114b50f4023843073acf6d4cea223fb491e7e (patch)
tree1e836c2029561c0b0a1a50f63e5a96d4811497e4 /src/jogl/classes/jogamp/opengl
parent70f360d1a58405502a5a2a0f95a2f2abda94d488 (diff)
Bug 1384: Move remaining 'lose' property quirks into GLRendererQuirks.Override
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
index 4e7987327..aba9054d0 100644
--- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java
+++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
@@ -1081,7 +1081,7 @@ public abstract class GLContextImpl extends GLContext {
validateProfileBits(profile, "profile");
validateProfileBits(resCtp, "resCtp");
- if(FORCE_NO_FBO_SUPPORT) {
+ if( GLRendererQuirks.existStickyDeviceQuirk(device, GLRendererQuirks.NoFBOSupport) ) {
resCtp &= ~CTX_IMPL_FBO ;
}
if(DEBUG) {
@@ -2162,7 +2162,7 @@ public abstract class GLContextImpl extends GLContext {
hasCtxProfileBits |= CTX_IMPL_FP32_COMPAT_API;
}
- if(FORCE_NO_FBO_SUPPORT) {
+ if( glRendererQuirks.exist(GLRendererQuirks.NoFBOSupport) ) {
hasCtxProfileBits &= ~CTX_IMPL_FBO ;
}
@@ -2499,26 +2499,6 @@ public abstract class GLContextImpl extends GLContext {
}
}
- //
- // Property related quirks
- //
- if( FORCE_NO_COLOR_RENDERBUFFER ) {
- final int quirk = GLRendererQuirks.BuggyColorRenderbuffer;
- if(DEBUG) {
- System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: property");
- }
- quirks.addQuirk( quirk );
- }
- if( FORCE_MIN_FBO_SUPPORT || quirks.exist(GLRendererQuirks.BuggyColorRenderbuffer) ) {
- final int quirk = GLRendererQuirks.NoFullFBOSupport;
- if(DEBUG) {
- final String causeProps = FORCE_MIN_FBO_SUPPORT ? "property, " : "";
- final String causeQuirk = quirks.exist(GLRendererQuirks.BuggyColorRenderbuffer) ? "BuggyColorRenderbuffer" : "";
- System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: "+causeProps+causeQuirk);
- }
- quirks.addQuirk( quirk );
- }
-
if(DEBUG) {
System.err.println("Quirks local.0: "+quirks);
}