diff options
author | Sven Gothel <[email protected]> | 2011-10-13 13:47:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-13 13:47:30 +0200 |
commit | 3fd89ccc138eddb915372cff4843f69f764048a7 (patch) | |
tree | e56ee402ffbec00220e4bead29b39a73b467f48e /src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java | |
parent | 5d33b0a3ef993ff2d257c90abc3d84bc93269cd0 (diff) |
MacOSX: Always release ctx on main thread (offscreen was frozen as well); Cleanup Warnings and OSX ContextUpdater
-
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java index 4df3b7e34..b2c95de39 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsBitmapWGLDrawable.java @@ -93,7 +93,7 @@ public class WindowsBitmapWGLDrawable extends WindowsWGLDrawable { capabilities.getGreenBits() + capabilities.getBlueBits() + capabilities.getAlphaBits()); - header.setBiSize(header.size()); + header.setBiSize(BITMAPINFOHEADER.size()); header.setBiWidth(width); // NOTE: negating the height causes the DIB to be in top-down row // order rather than bottom-up; ends up being correct during pixel @@ -118,7 +118,7 @@ public class WindowsBitmapWGLDrawable extends WindowsWGLDrawable { System.err.println("WindowsBitmapWGLDrawable: " + width+"x"+height + ", bpp " + bitsPerPixel + ", bytes " + byteNum + - ", header sz " + header.size() + + ", header sz " + BITMAPINFOHEADER.size() + ", DIB ptr num " + pb.capacity()+ ", "+capabilities+ ", werr "+werr); |