aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-07 07:57:07 +0200
committerSven Gothel <[email protected]>2011-08-07 07:57:07 +0200
commit75b7379caf263a8e44a21c2daf1fc994f4761dc8 (patch)
tree071eb07744894fd1e9fd376e02837372f97dad0a /src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java
parent068e931dde12f7aae8687f54081c128f2a12fc50 (diff)
EGLPBuffer: remove 'ownEGLDisplay=true' (just wrong), add destroyImpl()
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java b/src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java
index 6cbd1ee6a..5fb32e6cd 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLPbufferDrawable.java
@@ -46,13 +46,14 @@ import javax.media.opengl.GLCapabilitiesImmutable;
import javax.media.opengl.GLContext;
import javax.media.opengl.GLException;
+import jogamp.opengl.x11.glx.GLX;
+
public class EGLPbufferDrawable extends EGLDrawable {
private int texFormat;
protected static final boolean useTexture = false; // No yet ..
protected EGLPbufferDrawable(EGLDrawableFactory factory, NativeSurface target) {
super(factory, target);
- ownEGLDisplay = true;
// get choosen ones ..
GLCapabilitiesImmutable caps = (GLCapabilitiesImmutable)
@@ -76,6 +77,10 @@ public class EGLPbufferDrawable extends EGLDrawable {
}
+ protected void destroyImpl() {
+ setRealized(false);
+ }
+
protected long createSurface(long eglDpy, long eglNativeCfg, long surfaceHandle) {
NativeSurface nw = getNativeSurface();
int[] attrs = EGLGraphicsConfiguration.CreatePBufferSurfaceAttribList(nw.getWidth(), nw.getHeight(), texFormat);