aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-16 02:39:30 -0700
committerSven Gothel <[email protected]>2009-10-16 02:39:30 -0700
commit242da40f2ba446b3f92966461aa55c1bced8debc (patch)
tree3bbd10741f5790aa2b6014b34e46beeee5a1a539 /src/jogl
parent1d2e9cdca89e83339814abff38790367b33e6523 (diff)
Fix WindowsOffscreenWGLDrawable
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java5
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