Merge "Fix glReadPixels() to verify that both x and y are non-negative."
This commit is contained in:
commit
32a220aa6e
@ -1467,7 +1467,7 @@ void glReadPixels(
|
|||||||
ogles_error(c, GL_INVALID_VALUE);
|
ogles_error(c, GL_INVALID_VALUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (x<0 || x<0) {
|
if (x<0 || y<0) {
|
||||||
ogles_error(c, GL_INVALID_VALUE);
|
ogles_error(c, GL_INVALID_VALUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user