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
commit81d42591f766928fe250a0182e707e864f6e1f54 (patch)
tree90efc18c6a3d8990733976db1e7e6f98d95f4638 /opengl
parent19563cc278446c2df7a2df6d5f7c89f43228c437 (diff)
downloadframeworks_base-81d42591f766928fe250a0182e707e864f6e1f54.zip
frameworks_base-81d42591f766928fe250a0182e707e864f6e1f54.tar.gz
frameworks_base-81d42591f766928fe250a0182e707e864f6e1f54.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;
}