浏览代码

Fix texture padding issue with buffers

rdb 16 年之前
父节点
当前提交
be1213fa71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
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);