diff options
author | Kenneth Russel <[email protected]> | 2003-08-17 18:49:59 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-08-17 18:49:59 +0000 |
commit | 2abf3966ca86db4eafef3555b80937b35d576a60 (patch) | |
tree | c6aa7c1fada4e432d74ce74821c417e2a1426653 | |
parent | 97430eddb3716602d7b5e8ce9627772568b52876 (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
-rw-r--r-- | src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java | 2 |
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); } } |