Fix texture padding issue with buffers

This commit is contained in:
rdb 2009-05-05 14:40:58 +00:00
parent 682e5608e7
commit be1213fa71
1 changed files with 1 additions and 1 deletions

View File

@ -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);