summaryrefslogtreecommitdiffstats
path: root/src/demos/readbuffer/ReadBufferUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-26 19:24:19 +0200
committerSven Gothel <[email protected]>2011-04-26 19:24:19 +0200
commitf3afd3cd3be302c9b9cc3b6ec56cf032817e00a4 (patch)
treee7aaef0c1860f35f6b1e115489e134ae7df6d07c /src/demos/readbuffer/ReadBufferUtil.java
parenta7317cf820a33cac7f068153649031483df53cac (diff)
sync w/ jogl e007bb306124411e0232e51d16aa493cbd361f74
Diffstat (limited to 'src/demos/readbuffer/ReadBufferUtil.java')
-rwxr-xr-xsrc/demos/readbuffer/ReadBufferUtil.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/readbuffer/ReadBufferUtil.java b/src/demos/readbuffer/ReadBufferUtil.java
index 85680c7..e271767 100755
--- a/src/demos/readbuffer/ReadBufferUtil.java
+++ b/src/demos/readbuffer/ReadBufferUtil.java
@@ -88,9 +88,9 @@ public class ReadBufferUtil {
gl.glReadPixels(0, 0, drawable.getWidth(), drawable.getHeight(), GL.GL_RGB, GL.GL_UNSIGNED_BYTE, readPixelBuffer);
readPixelBuffer.rewind();
if(newData) {
- readTexture.updateImage(readTextureData);
+ readTexture.updateImage(gl, readTextureData);
} else {
- readTexture.updateSubImage(readTextureData, 0,
+ readTexture.updateSubImage(gl, readTextureData, 0,
0, 0, // src offset
0, 0, // dst offset
drawable.getWidth(), drawable.getHeight());
@@ -99,8 +99,8 @@ public class ReadBufferUtil {
}
}
- public void dispose() {
- readTexture.dispose();
+ public void dispose(GL gl) {
+ readTexture.destroy(gl);
readTextureData = null;
readPixelBuffer.clear();
readPixelBuffer = null;