diff options
author | Sven Gothel <[email protected]> | 2012-08-17 20:53:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-08-17 20:53:25 +0200 |
commit | b255e569c5197aa60255a6141960a39a827222c4 (patch) | |
tree | 14c50b12e0b1cce5f43ca391bbf1e73724e21a38 /src/jogl/classes/jogamp/opengl | |
parent | ec0f4a5ab604c73d40d3585c0147b451ad53dcf5 (diff) |
Fix EGLDrawableFactory.createOffscreenDrawableImpl(NativeSurface): Validate passed NativeSurface 'target' via getEGLSurface(target)
Makes impl. consistent w/ EGLDrawableFactory.createOnscreenDrawableImpl().
Even for offscreen drawable creation, the passed NativeSurface maybe platform specific (X11, GLX)
for which we require to create a WrappedSurface w/ EGL instances.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java index e145a959c..50b480210 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java @@ -541,7 +541,7 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl { throw new GLException("Non pbuffer not yet implemented"); } // PBuffer GLDrawable Creation - return new EGLPbufferDrawable(this, target); + return new EGLPbufferDrawable(this, getEGLSurface(target)); } @Override |