From be1213fa71b2f8bd676e4edf5d50ed83fdf0c620 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 5 May 2009 14:40:58 +0000 Subject: [PATCH] Fix texture padding issue with buffers --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 27b18bfa91..9b4c878652 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -3457,7 +3457,7 @@ framebuffer_copy_to_texture(Texture *tex, int z, const DisplayRegion *dr, // It seems that OpenGL accepts a size higher than the framebuffer, // but if we run into trouble we'll have to replace this with // something smarter. - GLP(CopyTexImage2D)(target, 0, internal_format, xo, yo, w, h, 0); + GLP(CopyTexImage2D)(target, 0, internal_format, xo, yo, width, height, 0); } else { // We can overlay the existing image. GLP(CopyTexSubImage2D)(target, 0, 0, 0, xo, yo, w, h);