summaryrefslogtreecommitdiffstats
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 73b1db4..a1a776f 100644
--- a/opengl/libagl/texture.cpp
+++ b/opengl/libagl/texture.cpp
@@ -1152,7 +1152,7 @@ void glCompressedTexImage2D(
if (etc1_decode_image(
(const etc1_byte*)data,
(etc1_byte*)surface->data,
- width, height, 3, surface->stride) != 0) {
+ width, height, 3, surface->stride*3) != 0) {
ogles_error(c, GL_INVALID_OPERATION);
}
return;