summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-02-27 18:53:11 -0500
committerEmil Velikov <[email protected]>2015-03-07 17:21:34 +0000
commit73f8e342a7d33e296eb7a92b3dffae55a66f8f9f (patch)
tree9e1bf7505d3204b6a0199abcf4e40e3076ae4581 /src
parent53d66c0c7c39fbe2a587a849e0714d6f9a01f476 (diff)
main/base_tex_format: Properly handle STENCIL_INDEX1/4/16
This takes "fbo-stencil blit GL_STENCIL_INDEX1/4/16" from crash to pass on BDW. Cc: 10.5 <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit c4925d7f3b66d63fbdd7b7607cd809db1e58bee9)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/teximage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index c9c48bb9362..74a306a99f9 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -224,7 +224,10 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )
if (ctx->Extensions.ARB_stencil_texturing) {
switch (internalFormat) {
case GL_STENCIL_INDEX:
+ case GL_STENCIL_INDEX1:
+ case GL_STENCIL_INDEX4:
case GL_STENCIL_INDEX8:
+ case GL_STENCIL_INDEX16:
return GL_STENCIL_INDEX;
default:
; /* fallthrough */