summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opengl/libagl/texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp
index fa25fa92f0..9407bd5530 100644
--- a/opengl/libagl/texture.cpp
+++ b/opengl/libagl/texture.cpp
@@ -1488,7 +1488,7 @@ void glCopyTexSubImage2D(
height = cbSurface.height - y;
int err = copyPixels(c,
- surface, xoffset, yoffset,
+ txSurface, xoffset, yoffset,
cbSurface, x, y, width, height);
if (err) {
ogles_error(c, err);