Allow ANGLE_depth_texture for FBO completeness.
authorJamie Madill <jmadill@chromium.org>
Thu, 8 Dec 2016 19:51:07 +0000 (14:51 -0500)
committerPyry Haulos <phaulos@google.com>
Wed, 14 Dec 2016 11:19:13 +0000 (11:19 +0000)
This extension enables the same depth attachment formats as
GL_OES_depth_texture. The few restrictions on usage aren't
relevant for the completeness tests.

Bug: 33453991

modules/glshared/glsFboCompletenessTests.cpp

index 3901ec1..791d8c9 100644 (file)
@@ -232,6 +232,12 @@ static const FormatExtEntry s_esExtFormats[] =
                (deUint32)(DEPTH_RENDERABLE | STENCIL_RENDERABLE | TEXTURE_VALID),
                GLS_ARRAY_RANGE(s_oesPackedDepthStencilTexFormats)
        },
+       // The ANGLE extension incorporates GL_OES_depth_texture/GL_OES_packed_depth_stencil.
+       {
+               "GL_ANGLE_depth_texture",
+               (deUint32)(REQUIRED_RENDERABLE | DEPTH_RENDERABLE | TEXTURE_VALID),
+               GLS_ARRAY_RANGE(s_oesDepthTextureFormats),
+       },
        // \todo [2013-12-10 lauri] Find out if OES_texture_half_float is really a
        // requirement on ES3 also. Or is color_buffer_half_float applicatble at
        // all on ES3, since there's also EXT_color_buffer_float?