summaryrefslogtreecommitdiffstats
path: root/src/demos/readbuffer/ReadBufferUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-30 02:06:00 +0200
committerSven Gothel <[email protected]>2010-03-30 02:06:00 +0200
commit2e4835c543d32791cf3c79907aecad7c4692f457 (patch)
tree613d0f21c1cb79a400b4b188534ec033343bfc87 /src/demos/readbuffer/ReadBufferUtil.java
parentd3e818ea8b7c3f45ed4cfac7b0e7d3bd24f956e5 (diff)
parent0b708395a18eb6a2ae5372ff414bc75830ce19b6 (diff)
Merge branch 'master' of github.com:mbien/jogl-demos
Diffstat (limited to 'src/demos/readbuffer/ReadBufferUtil.java')
-rwxr-xr-xsrc/demos/readbuffer/ReadBufferUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/readbuffer/ReadBufferUtil.java b/src/demos/readbuffer/ReadBufferUtil.java
index 5cba034..85680c7 100755
--- a/src/demos/readbuffer/ReadBufferUtil.java
+++ b/src/demos/readbuffer/ReadBufferUtil.java
@@ -33,12 +33,12 @@
package demos.readbuffer;
+import com.jogamp.opengl.util.GLBuffers;
import java.nio.*;
import javax.media.opengl.*;
import com.jogamp.opengl.util.texture.Texture;
import com.jogamp.opengl.util.texture.TextureData;
-import com.jogamp.opengl.util.BufferUtil;
public class ReadBufferUtil {
protected int readPixelSizeLast = 0;
@@ -60,7 +60,7 @@ public class ReadBufferUtil {
int readPixelSize = drawable.getWidth() * drawable.getHeight() * 3 ; // RGB
boolean newData = false;
if(readPixelSize>readPixelSizeLast) {
- readPixelBuffer = BufferUtil.newGLBuffer(gl.GL_UNSIGNED_BYTE, readPixelSize);
+ readPixelBuffer = GLBuffers.newDirectGLBuffer(GL.GL_UNSIGNED_BYTE, readPixelSize);
readPixelSizeLast = readPixelSize ;
try {
readTextureData = new TextureData(