diff options
author | Sven Gothel <[email protected]> | 2014-03-17 20:44:21 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-03-17 20:44:21 +0100 |
commit | 2a643528c9107d4e96598058b0a6bc392683c557 (patch) | |
tree | cfa95ec36a657b7371ca89094978f3a411d5b493 /src/jogl/classes/jogamp/graph/curve/opengl | |
parent | 5ff1300ddc9daadb885614462a769f6407487e59 (diff) |
Graph: Fix NPE in case of double destroy call .. (VBORegion2PMSAAES2)
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java index 4aeceea7e..03ea91a32 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java @@ -87,12 +87,18 @@ public class VBORegion2PMSAAES2 extends GLRegion { @Override protected final void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) { - indicesTxtBuffer.seal(gl, false); - indicesTxtBuffer.rewind(); - verticeTxtAttr.seal(gl, false); - verticeTxtAttr.rewind(); - texCoordTxtAttr.seal(gl, false); - texCoordTxtAttr.rewind(); + if( null != indicesTxtBuffer ) { + indicesTxtBuffer.seal(gl, false); + indicesTxtBuffer.rewind(); + } + if( null != verticeTxtAttr ) { + verticeTxtAttr.seal(gl, false); + verticeTxtAttr.rewind(); + } + if( null != texCoordTxtAttr ) { + texCoordTxtAttr.seal(gl, false); + texCoordTxtAttr.rewind(); + } } @Override |