summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMike Playle <mike.playle@realvnc.com>2010-01-29 09:52:22 +0000
committerMike Playle <mike.playle@realvnc.com>2010-01-29 09:52:22 +0000
commita48c654e8207ed820670ea3214a649ff7d92c8a3 (patch)
treec0e6a17f7f3c89a43dde9d75f09dc02c42e50c31 /opengl
parent97c7a443b792a7406abccfd6eb70e96c0c4d01fa (diff)
downloadframeworks_native-a48c654e8207ed820670ea3214a649ff7d92c8a3.zip
frameworks_native-a48c654e8207ed820670ea3214a649ff7d92c8a3.tar.gz
frameworks_native-a48c654e8207ed820670ea3214a649ff7d92c8a3.tar.bz2
Fix glReadPixels() to verify that both x and y are non-negative.
Diffstat (limited to 'opengl')
-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 13d078e..89a19b6 100644
--- a/opengl/libagl/texture.cpp
+++ b/opengl/libagl/texture.cpp
@@ -1467,7 +1467,7 @@ void glReadPixels(
ogles_error(c, GL_INVALID_VALUE);
return;
}
- if (x<0 || x<0) {
+ if (x<0 || y<0) {
ogles_error(c, GL_INVALID_VALUE);
return;
}