Merge "Fix glReadPixels() to verify that both x and y are non-negative."

This commit is contained in:
Mathias Agopian 2010-05-10 20:26:24 -07:00 committed by Android Code Review
commit 32a220aa6e

View File

@ -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;
}