[Piglit] [PATCH] fbo-blit-d24s8: add GLUT_DEPTH to piglit_window_mode
Brian Paul
brianp at vmware.com
Mon Oct 10 11:38:02 PDT 2011
This test tries to write to the window's depth buffer, but we weren't
requesting one when we created the window.
This fixes a failing glGetError()==0 assertion but we still generate
an INVALID_OPERATION error with swrast because we're trying to blit
from an FBO with 24-bit Z values to the window with 16-bit Z values.
That may be a bogus Mesa error check.
---
tests/fbo/fbo-blit-d24s8.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/fbo/fbo-blit-d24s8.c b/tests/fbo/fbo-blit-d24s8.c
index f5373aa..11af723 100644
--- a/tests/fbo/fbo-blit-d24s8.c
+++ b/tests/fbo/fbo-blit-d24s8.c
@@ -40,7 +40,7 @@
int piglit_width = 150;
int piglit_height = 150;
-int piglit_window_mode = GLUT_RGBA | GLUT_DOUBLE | GLUT_STENCIL;
+int piglit_window_mode = GLUT_RGBA | GLUT_DOUBLE | GLUT_STENCIL | GLUT_DEPTH;
#define PAD 10
#define SIZE 20
--
1.7.3.4
More information about the Piglit
mailing list