diff options
author | Sven Gothel <[email protected]> | 2011-02-05 02:39:25 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-02-05 02:39:25 +0100 |
commit | 5d18d6b57f7d9d92a9f568e20beb64a6d44de25a (patch) | |
tree | d157eda355bdf27784efd52ac90a2a4c90640e4c /src/jogl/classes/com/jogamp/opengl/impl/x11 | |
parent | 6dd574f75e0b27de31136c05cc0ed18f075f004f (diff) |
Fix bug #461 on NV/Win (caps selection)
Allows TestBug461OffscreenSupersamplingSwingAWT to pass on NV/Win7.
Root cause was using the requested unfixed caps (onscreen, !pbuffer)
instead of the fixed ones.
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl/x11')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java index 41cd543aa..65970dab2 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java @@ -94,13 +94,13 @@ public class X11PbufferGLXDrawable extends X11GLXDrawable { NativeSurface ns = getNativeSurface(); - GLCapabilitiesImmutable capabilities = (GLCapabilitiesImmutable)config.getChosenCapabilities(); + GLCapabilitiesImmutable chosenCaps = (GLCapabilitiesImmutable)config.getChosenCapabilities(); - if (capabilities.getPbufferRenderToTexture()) { + if (chosenCaps.getPbufferRenderToTexture()) { throw new GLException("Render-to-texture pbuffers not supported yet on X11"); } - if (capabilities.getPbufferRenderToTextureRectangle()) { + if (chosenCaps.getPbufferRenderToTextureRectangle()) { throw new GLException("Render-to-texture-rectangle pbuffers not supported yet on X11"); } |