mesa/teximage: use correct extension for accept stencil texture.
authorDave Airlie <airlied@gmail.com>
Sun, 5 Apr 2015 06:48:47 +0000 (16:48 +1000)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Jun 2015 22:47:09 +0000 (15:47 -0700)
This was using the wrong extension, ARB_stencil_texturing
doesn't mention any changes in this area.

Fixes "dEQP-GLES3.functional.fbo.completeness.renderable.texture.
stencil.stencil_index8."

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90751
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/teximage.c

index 7bc1da7f805b8e5e9f87367c27bbd166b0718a7b..3d85615fa45e38c5d06efe682382ce05120e09e5 100644 (file)
@@ -222,7 +222,7 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )
       }
    }
 
-   if (ctx->Extensions.ARB_stencil_texturing) {
+   if (ctx->Extensions.ARB_texture_stencil8) {
       switch (internalFormat) {
       case GL_STENCIL_INDEX:
       case GL_STENCIL_INDEX1: