From 81d42591f766928fe250a0182e707e864f6e1f54 Mon Sep 17 00:00:00 2001 From: Mike Playle Date: Fri, 29 Jan 2010 09:52:22 +0000 Subject: Fix glReadPixels() to verify that both x and y are non-negative. --- opengl/libagl/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opengl') diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp index 13d078e..89a19b6 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; } -- cgit v1.1