[Piglit] [PATCH 6/6] arb_texture_buffer_object/get: fix the default texture buffer format
Marek Olšák
maraeo at gmail.com
Sat Jul 20 11:29:45 PDT 2013
---
tests/spec/arb_texture_buffer_object/get.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/spec/arb_texture_buffer_object/get.c b/tests/spec/arb_texture_buffer_object/get.c
index c178bdd..3458e0b 100644
--- a/tests/spec/arb_texture_buffer_object/get.c
+++ b/tests/spec/arb_texture_buffer_object/get.c
@@ -85,7 +85,9 @@ piglit_init(int argc, char **argv)
glBindBuffer(GL_TEXTURE_BUFFER, bo);
pass = expect(GL_TEXTURE_BUFFER, bo) && pass;
- pass = expect(GL_TEXTURE_BUFFER_FORMAT_ARB, GL_LUMINANCE8) && pass;
+ pass = expect(GL_TEXTURE_BUFFER_FORMAT_ARB,
+ piglit_is_core_profile ? GL_R8 : GL_LUMINANCE8) && pass;
+
glTexBufferARB(GL_TEXTURE_BUFFER, GL_RGBA8, 0);
pass = expect(GL_TEXTURE_BUFFER_FORMAT_ARB, GL_RGBA8) && pass;
--
1.8.1.2
More information about the Piglit
mailing list