aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-09 17:19:36 +0100
committerSven Gothel <[email protected]>2011-11-09 17:19:36 +0100
commited33158d3330dfe2287af5bfaf5aea99f199887c (patch)
treefbc7c33d32b97bfeb3f616a515dea704ac88f9cc /src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java
parentf48713f52733b476d8d59e4a9a9e3f64afeba6a5 (diff)
Cleanup offscreen/pbuffer drawables - minor edits
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java
index 5c4c3907c..5e831ed59 100644
--- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java
+++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java
@@ -77,17 +77,9 @@ public class MacOSXPbufferCGLDrawable extends MacOSXCGLDrawable {
public MacOSXPbufferCGLDrawable(GLDrawableFactory factory, NativeSurface target, boolean realizeNow) {
super(factory, target, false);
- if (DEBUG) {
- System.out.println("Pbuffer config: " + getNativeSurface().getGraphicsConfiguration().getNativeGraphicsConfiguration());
- }
-
if(realizeNow) {
setRealized(true);
}
-
- if (DEBUG) {
- System.err.println("Created pbuffer " + this);
- }
}
protected void destroyImpl() {
@@ -139,6 +131,10 @@ public class MacOSXPbufferCGLDrawable extends MacOSXCGLDrawable {
final GLProfile glProfile = capabilities.getGLProfile();
MacOSXCGLDrawableFactory.SharedResource sr = ((MacOSXCGLDrawableFactory)factory).getOrCreateOSXSharedResource(config.getScreen().getDevice());
+ if (DEBUG) {
+ System.out.println("Pbuffer config: " + config);
+ }
+
if ( capabilities.getPbufferRenderToTextureRectangle() && null!=sr && sr.isRECTTextureAvailable() ) {
pBufferTexTarget = GL2.GL_TEXTURE_RECTANGLE;
} else {