summaryrefslogtreecommitdiffstats
path: root/src/demos/vertexProgRefract/VertexProgRefract.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-22 23:12:28 +0000
committerKenneth Russel <[email protected]>2005-02-22 23:12:28 +0000
commit0ae7ec200ff792fb382025d6f9a9d16bc9aed8a7 (patch)
treeadd0ca3776c83617efaad74f03f76b47d4496822 /src/demos/vertexProgRefract/VertexProgRefract.java
parentc0f77dd1c1dc8a8f5523f9023806e83e03c2f0ed (diff)
Took out debugging code from VertexProgRefract demo
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@57 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/vertexProgRefract/VertexProgRefract.java')
-rw-r--r--src/demos/vertexProgRefract/VertexProgRefract.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/demos/vertexProgRefract/VertexProgRefract.java b/src/demos/vertexProgRefract/VertexProgRefract.java
index 5e8f626..4039fad 100644
--- a/src/demos/vertexProgRefract/VertexProgRefract.java
+++ b/src/demos/vertexProgRefract/VertexProgRefract.java
@@ -538,24 +538,9 @@ public class VertexProgRefract {
throw new RuntimeException("Unsupported image type " + img.getType());
}
-
- // ByteBuffer destScaled = ByteBuffer.allocateDirect(dest.capacity() / 4);
- ByteBuffer destScaled = ByteBuffer.allocateDirect(dest.capacity());
- destScaled.order(ByteOrder.nativeOrder());
- int res = glu.gluScaleImage(GL.GL_RGB,
- img.getWidth(), img.getHeight(), GL.GL_UNSIGNED_BYTE, dest,
- img.getWidth(), img.getHeight(), GL.GL_UNSIGNED_BYTE, destScaled);
- // System.out.println("gluScaleImage: result = " + res);
-
-
-
-
if (mipmapped) {
- // glu.gluBuild2DMipmaps(target, GL.GL_RGB8, img.getWidth(), img.getHeight(), GL.GL_RGB,
- // GL.GL_UNSIGNED_BYTE, dest);
-
glu.gluBuild2DMipmaps(target, GL.GL_RGB8, img.getWidth(), img.getHeight(), GL.GL_RGB,
- GL.GL_UNSIGNED_BYTE, destScaled);
+ GL.GL_UNSIGNED_BYTE, dest);
} else {
gl.glTexImage2D(target, 0, GL.GL_RGB, img.getWidth(), img.getHeight(), 0,
GL.GL_RGB, GL.GL_UNSIGNED_BYTE, dest);