aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl/src/main/java
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2018-01-27 10:48:19 +0100
committerJulien Gouesse <[email protected]>2018-01-27 10:48:19 +0100
commita3459c947c9b0d24c34c619b2225636e8aaf7ddc (patch)
tree0ed156245a97bd3c7a4e613c10f9eabecc444bf5 /ardor3d-jogl/src/main/java
parent5b63208ed69f88b0fc4edf89569839e6e260b7c7 (diff)
parent9e9c406384a5ef51fd777d936932382f8dde0dc4 (diff)
Merges Renanse's commit 9e9c406384a5ef51fd777d936932382f8dde0dc4
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java5
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();