[Piglit] [PATCH] copyteximage: add more red/rg formats in supported_format()

Brian Paul brian.e.paul at gmail.com
Thu Aug 23 19:26:15 PDT 2012


From: Brian Paul <brianp at vmware.com>

This fixes some failures when GL_ARB_texture_rg is not supported.
---
 tests/texturing/copyteximage.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c
index 8a35703..f54e8d9 100644
--- a/tests/texturing/copyteximage.c
+++ b/tests/texturing/copyteximage.c
@@ -130,7 +130,10 @@ supported_format(GLenum format)
 	case GL_RGB16F:
 	case GL_RGB32F:
 		return piglit_is_extension_supported("GL_ARB_texture_float");
+	case GL_RED:
 	case GL_RG:
+	case GL_COMPRESSED_RED:
+	case GL_COMPRESSED_RG:
 		return piglit_is_extension_supported("GL_ARB_texture_rg");
 	case GL_DEPTH_COMPONENT32F:
 		return piglit_is_extension_supported("GL_ARB_depth_buffer_float");
-- 
1.7.4.1



More information about the Piglit mailing list