[Piglit] [PATCH] attach a unbound renderbuffer should generate a GL_INVALID_OPERATION error instead of GL_INVALID_VALUE

Jin Zhou zhoujin10 at gmail.com
Tue Dec 10 04:12:21 PST 2013


From: Jin Zhou <jin.zhou at amd.com>

a GL_INVALID_OPERATION should be generated instead of GL_INVALID_VALUE
---
 tests/fbo/fbo-bind-renderbuffer.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/fbo/fbo-bind-renderbuffer.c b/tests/fbo/fbo-bind-renderbuffer.c
index 60fbbf2..3b2b305 100644
--- a/tests/fbo/fbo-bind-renderbuffer.c
+++ b/tests/fbo/fbo-bind-renderbuffer.c
@@ -22,7 +22,7 @@
  */
 
 /*
- * Does this sequence generate GL_INVALID_VALUE for the last command?
+ * Does this sequence generate GL_INVALID_OPERATION for the last command?
  * It should generate an error since the renderbuffer was never bound.
  *   glGenFramebuffers(1, &fb);
  *   glGenRenderbuffers(1, &rb);
@@ -77,7 +77,7 @@ piglit_display(void)
       return PIGLIT_FAIL;
    }
 
-   if (test_binding(GL_FALSE) != GL_INVALID_VALUE) {
+   if (test_binding(GL_FALSE) != GL_INVALID_OPERATION) {
       printf("fbo-bind-renderbuffer: failed to generate expected error\n");
       return PIGLIT_FAIL;
    }
-- 
1.7.9.5



More information about the Piglit mailing list