[Mesa-dev] [PATCH 1/4] mesa/teximage: use correct extension for accept stencil texture.
Ian Romanick
idr at freedesktop.org
Mon Apr 6 11:31:48 PDT 2015
On 04/04/2015 11:48 PM, Dave Airlie wrote:
> This was using the wrong extension, ARB_stencil_texturing
> doesn't mention any changes in this area.
Right... that extension only enables reading the stencil value from a
GL_DEPTH_STENCIL texture. This patch is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/mesa/main/teximage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 8d9d7cf..36e0b56 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -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:
>
More information about the mesa-dev
mailing list