diff options
author | Sven Gothel <[email protected]> | 2012-02-29 01:35:37 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-29 01:35:37 +0100 |
commit | 03697923f27df06343f8885f1c1b70bf4b3af9c2 (patch) | |
tree | 32ec8b44078d0b0317822742b7c89ef179dcb645 /src/jogl/classes/jogamp/opengl/GLContextImpl.java | |
parent | d302e063a6cd344c951c2eef56247b43c896c8cf (diff) |
Software Rasterizer: Add 'Mesa X11' to GL_RENDERER list. EGLDrawable: Remove getWidth()/getHeight() EGL surface queries.
EGLDrawable: Remove getWidth()/getHeight() EGL surface queries.
This code is not only redunant, since the surface dimension is known in the NativeWindow surface
returned by GLDrawableImpl., but also causes an exception since the EGL surface might not be realized
at the time it's dimension is being queried.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLContextImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLContextImpl.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index 3d3c387e1..5cbe3a44d 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -1102,8 +1102,10 @@ public abstract class GLContextImpl extends GLContext { Thread.dumpStack(); } else { glRenderer = glRenderer.toLowerCase(); - isHardwareRasterizer = ! ( glRenderer.contains("software") /* Mesa3D */ || - glRenderer.contains("softpipe") /* Gallium */ ); + isHardwareRasterizer = ! ( glRenderer.contains("software") /* Mesa3D */ || + glRenderer.contains("mesa x11") /* Mesa3D*/ || + glRenderer.contains("softpipe") /* Gallium */ + ); } } } |