diff options
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java index e235753..0bd3f1b 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java @@ -3,7 +3,7 @@ * * This file is part of Ardor3D. * - * Ardor3D is free software: you can redistribute it and/or modify it + * Ardor3D is free software: you can redistribute it and/or modify it * under the terms of its license which may be found in the accompanying * LICENSE file or at <http://www.ardor3d.com/LICENSE>. */ @@ -50,7 +50,7 @@ import com.ardor3d.util.geom.jogl.DirectNioBuffersSet; * </p> * N.B: This class can't work without a complete implementation of GLOffscreenAutoDrawable.PBuffer, which is currently * missing from JOGL - * + * * @see TextureRendererFactory */ public class JoglPbufferTextureRenderer extends AbstractPbufferTextureRenderer { @@ -299,6 +299,7 @@ public class JoglPbufferTextureRenderer extends AbstractPbufferTextureRenderer { caps.setOnscreen(false); caps.setPBuffer(true); _offscreenDrawable = fac.createOffscreenAutoDrawable(null, caps, null, _width, _height); + // FIXME is this hack still useful? _offscreenDrawable.setSharedContext(_parentContext); _context = _offscreenDrawable.getContext(); |