[Piglit] [PATCH 1/3] clearbuffer-display-lists: GL_BACK_is not allowed as drawbuffer
Marek Olšák
maraeo at gmail.com
Thu Dec 5 09:55:23 PST 2013
From: Marek Olšák <marek.olsak at amd.com>
Only 0 to MAX_DRAW_BUFFERS-1 is allowed. If you want to clear GL_BACK,
call glDrawBuffers(GL_BACK) and then glClearBuffer(GL_COLOR, 0, ..).
---
tests/spec/gl-3.0/api/clearbuffer-display-lists.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/spec/gl-3.0/api/clearbuffer-display-lists.c b/tests/spec/gl-3.0/api/clearbuffer-display-lists.c
index 4d9bda2..cdc180d 100644
--- a/tests/spec/gl-3.0/api/clearbuffer-display-lists.c
+++ b/tests/spec/gl-3.0/api/clearbuffer-display-lists.c
@@ -58,7 +58,7 @@ void piglit_init(int argc, char **argv)
/* Create a new list in compile mode */
glNewList(index, GL_COMPILE);
glClearBufferfv(GL_COLOR,
- GL_BACK,
+ 0,
first);
glEndList();
pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
@@ -82,7 +82,7 @@ void piglit_init(int argc, char **argv)
/* Create a new list in compile and execute mode */
glNewList(index + 1, GL_COMPILE_AND_EXECUTE);
glClearBufferfv(GL_COLOR,
- GL_BACK,
+ 0,
second);
glEndList();
@@ -96,7 +96,7 @@ void piglit_init(int argc, char **argv)
* call glCallList() and probe the color buffer again
*/
glClearBufferfv(GL_COLOR,
- GL_BACK,
+ 0,
third);
/* Probe the color buffer before glCallList() */
pass = piglit_probe_rect_rgba(0, 0,
--
1.8.3.2
More information about the Piglit
mailing list