From 2abf3966ca86db4eafef3555b80937b35d576a60 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 17 Aug 2003 18:49:59 +0000 Subject: 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 --- src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3