[Piglit] [PATCH 3/4] fbo-storage-formats: Fix reporting of invalid formats.

Kenney Phillis kphillisjr at gmail.com
Tue Aug 20 13:12:14 PDT 2013


Currently Invalid formats is reported from the formats data structure.
This is incorrect because the invalid formats set should not use this
system.
---
 tests/fbo/fbo-storage-formats.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 3b82517..bbe286c 100644
--- a/tests/fbo/fbo-storage-formats.c
+++ b/tests/fbo/fbo-storage-formats.c
@@ -209,7 +209,7 @@ test(void)
 
 	/* test formats that should fail */
 	for (i = 0; i < ARRAY_SIZE(invalid_formats); i++) {
-		const char *name = piglit_get_gl_enum_name(formats[i].format);
+		const char *name = piglit_get_gl_enum_name(invalid_formats[i]);
 
 		glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT,
 					 invalid_formats[i],
-- 
1.7.9.5



More information about the Piglit mailing list