Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu>
---
 tests/texturing/copyteximage.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c
index 0afcba5..85b2215 100644
--- a/tests/texturing/copyteximage.c
+++ b/tests/texturing/copyteximage.c
@@ -184,8 +184,13 @@ supported_format(GLenum format)
        case GL_COMPRESSED_RED:
        case GL_COMPRESSED_RG:
                return piglit_is_extension_supported("GL_ARB_texture_rg");
+       case GL_DEPTH_COMPONENT:
+       case GL_DEPTH_COMPONENT16:
+       case GL_DEPTH_COMPONENT24:
+               return piglit_is_extension_supported("GL_ARB_depth_texture");
        case GL_DEPTH24_STENCIL8:
-               return 
piglit_is_extension_supported("GL_EXT_packed_depth_stencil");
+               return 
piglit_is_extension_supported("GL_EXT_packed_depth_stencil") &&
+                       piglit_is_extension_supported("GL_ARB_depth_texture");
        case GL_DEPTH_COMPONENT32F:
        case GL_DEPTH32F_STENCIL8:
                return 
piglit_is_extension_supported("GL_ARB_depth_buffer_float");
-- 
1.8.3.2

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to