[Piglit] [PATCH] fbo-getframebufferattachmentparameter-01: fix DEPTH_SIZE query

Marek Olšák maraeo at gmail.com
Mon May 30 02:14:38 PDT 2011


Mesa returns 0. It seems correct to me.
---
 .../fbo/fbo-getframebufferattachmentparameter-01.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/fbo/fbo-getframebufferattachmentparameter-01.c b/tests/fbo/fbo-getframebufferattachmentparameter-01.c
index 551a03d..b813b51 100644
--- a/tests/fbo/fbo-getframebufferattachmentparameter-01.c
+++ b/tests/fbo/fbo-getframebufferattachmentparameter-01.c
@@ -148,8 +148,9 @@ piglit_init(int argc, char **argv)
 	pass = try_GetAttachmentParam(GL_DEPTH_ATTACHMENT,
 				      GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
 				      0,
-				      GL_INVALID_ENUM,
-				      "")
+				      0,
+				      "Expected depth size of depth attachment to be "
+				      "%d, got %d instead.\n")
 		&& pass;
 
 	piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL);
-- 
1.7.4.1



More information about the Piglit mailing list