diff options
author | Sven Gothel <[email protected]> | 2009-10-16 02:39:30 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-16 02:39:30 -0700 |
commit | 242da40f2ba446b3f92966461aa55c1bced8debc (patch) | |
tree | 3bbd10741f5790aa2b6014b34e46beeee5a1a539 /src/jogl/classes/com/sun | |
parent | 1d2e9cdca89e83339814abff38790367b33e6523 (diff) |
Fix WindowsOffscreenWGLDrawable
Diffstat (limited to 'src/jogl/classes/com/sun')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java index f254748d1..cb8390504 100644 --- a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java +++ b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java @@ -66,7 +66,7 @@ public class WindowsOffscreenWGLDrawable extends WindowsWGLDrawable { } private void create() { - NullWindow nw = (NullWindow) getNativeWindow(); + NativeWindow nw = getNativeWindow(); WindowsWGLGraphicsConfiguration config = (WindowsWGLGraphicsConfiguration)nw.getGraphicsConfiguration().getNativeGraphicsConfiguration(); GLCapabilities capabilities = (GLCapabilities)config.getRequestedCapabilities(); int width = getWidth(); @@ -75,7 +75,8 @@ public class WindowsOffscreenWGLDrawable extends WindowsWGLDrawable { BITMAPINFOHEADER header = info.bmiHeader(); int bitsPerPixel = (capabilities.getRedBits() + capabilities.getGreenBits() + - capabilities.getBlueBits()); + capabilities.getBlueBits() + + capabilities.getAlphaBits()); header.biSize(header.size()); header.biWidth(width); // NOTE: negating the height causes the DIB to be in top-down row |