[Piglit] [PATCH 01/11] max-texture-size: Make error checking in proxy/3D case like the others.

Kenneth Graunke kenneth at whitecape.org
Sun Feb 2 03:13:49 PST 2014


For some reason this was written differently than all the other cases.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 tests/texturing/max-texture-size.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/texturing/max-texture-size.c b/tests/texturing/max-texture-size.c
index 7b6b3fc..65e2039 100644
--- a/tests/texturing/max-texture-size.c
+++ b/tests/texturing/max-texture-size.c
@@ -334,11 +334,8 @@ ValidateTexSize (GLenum target,  GLenum internalformat, bool useProxy)
 				     GL_FLOAT, NULL);
 
 			err = glGetError();
-			if (err == GL_OUT_OF_MEMORY)
-				return true;
-
 			/* Report a GL error other than GL_OUT_OF_MEMORY */
-			if (err != GL_NO_ERROR) {
+			if (err != GL_NO_ERROR && err != GL_OUT_OF_MEMORY) {
 				printf("Unexpected GL error: 0x%x\n", err);
 				return false;
 			}
-- 
1.8.5.2



More information about the Piglit mailing list