Skip to content

Commit 81d4259

Browse files
author
Mike Playle
committed
Fix glReadPixels() to verify that both x and y are non-negative.
1 parent 19563cc commit 81d4259

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)