[Piglit] [PATCH] GL 3.2: Use standard internalformat when testing FramebufferTexture

Emil Velikov emil.l.velikov at gmail.com
Tue Feb 25 06:14:04 PST 2014


GL_RGB32F is available only when texture_buffer_object_rgb32 is supported.
As the test covers different topic simply replace the format with one
that is supported by both core and compat profile and does not require
any extensions.

Cc: Jacob Penner <jkpenner91 at gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 .../spec/gl-3.2/layered-rendering/framebuffertexture-buffer-textures.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/gl-3.2/layered-rendering/framebuffertexture-buffer-textures.c b/tests/spec/gl-3.2/layered-rendering/framebuffertexture-buffer-textures.c
index c85e080..331b098 100644
--- a/tests/spec/gl-3.2/layered-rendering/framebuffertexture-buffer-textures.c
+++ b/tests/spec/gl-3.2/layered-rendering/framebuffertexture-buffer-textures.c
@@ -53,7 +53,7 @@ piglit_init(int argc, char **argv)
 	glGenTextures(1, &tex);
 	glBindTexture(GL_TEXTURE_BUFFER, tex);
 
-	glTexBuffer(GL_TEXTURE_BUFFER, GL_RGB32F, buff);
+	glTexBuffer(GL_TEXTURE_BUFFER, GL_RG32F, buff);
 
 	pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
 
-- 
1.9.0



More information about the Piglit mailing list