diff options
author | 2010-01-29 09:52:22 +0000 | |
---|---|---|
committer | 2010-01-29 09:52:22 +0000 | |
commit | a48c654e8207ed820670ea3214a649ff7d92c8a3 (patch) | |
tree | c0e6a17f7f3c89a43dde9d75f09dc02c42e50c31 | |
parent | 97c7a443b792a7406abccfd6eb70e96c0c4d01fa (diff) |
Fix glReadPixels() to verify that both x and y are non-negative.
-rw-r--r-- | opengl/libagl/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp index 13d078e2a3..89a19b66d5 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; } |