Commit 815932f4 authored by Brian Paul's avatar Brian Paul

copyteximage: add more red/rg formats in supported_format()

This fixes some failures when GL_ARB_texture_rg is not supported.
Reiewed-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
parent 6111bcca
......@@ -315,7 +315,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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment