aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-08-17 18:49:59 +0000
committerKenneth Russel <[email protected]>2003-08-17 18:49:59 +0000
commit2abf3966ca86db4eafef3555b80937b35d576a60 (patch)
treec6aa7c1fada4e432d74ce74821c417e2a1426653 /src/net/java/games/jogl/impl
parent97430eddb3716602d7b5e8ce9627772568b52876 (diff)
Applied suggestion from GKW on community.java.net forums to use
glCopyTexSubImage2D instead of glCopyTexImage2D to implement render-to-texture support on cards not supporting render-to-texture-rectangle. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@55 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java
index 18e954b2a..60b986b05 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java
@@ -397,7 +397,7 @@ public class WindowsPbufferGLContext extends WindowsGLContext {
}
GL gl = getGL();
- gl.glCopyTexImage2D(textureTarget, 0, GL.GL_RGB, 0, 0, width, height, 0);
+ gl.glCopyTexSubImage2D(textureTarget, 0, 0, 0, 0, 0, width, height);
}
}