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

Signed-off-by: Kenneth Graunke <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to