Skip to content

Commit 954cbf5

Browse files
Mathias AgopianAndroid Code Review
authored andcommitted
Merge "Fix glReadPixels() to verify that both x and y are non-negative."
2 parents 855a9e6 + 81d4259 commit 954cbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengl/libagl/texture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ void glReadPixels(
14671467
ogles_error(c, GL_INVALID_VALUE);
14681468
return;
14691469
}
1470-
if (x<0 || x<0) {
1470+
if (x<0 || y<0) {
14711471
ogles_error(c, GL_INVALID_VALUE);
14721472
return;
14731473
}

0 commit comments

Comments
 (0)