summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarta Lofstedt <[email protected]>2015-05-11 15:03:51 +0200
committerTapani Pälli <[email protected]>2015-08-03 12:31:04 +0300
commita4bde371c7172fd775dea4377f9bccc3a38992c0 (patch)
tree39ae83c1b6e9bc3c43ed9ac6845fbe7f3d387a12 /src
parent4f8e4a95dbd806bc735bf93dda245be2bb2ea454 (diff)
mesa/es3.1: Allow GL_DEPTH_STENCIL_TEXTURE_MODE
GLES 3.1 must support the parameter GL_DEPTH_STENCIL_TEXTURE_MODE. Signed-off-by: Marta Lofstedt <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texparam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index 88c2c142804..c0611c3e489 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -500,7 +500,9 @@ set_tex_parameteri(struct gl_context *ctx,
goto invalid_pname;
case GL_DEPTH_STENCIL_TEXTURE_MODE:
- if (_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_stencil_texturing) {
+ if ((_mesa_is_desktop_gl(ctx) &&
+ ctx->Extensions.ARB_stencil_texturing) ||
+ _mesa_is_gles31(ctx)) {
bool stencil = params[0] == GL_STENCIL_INDEX;
if (!stencil && params[0] != GL_DEPTH_COMPONENT)
goto invalid_param;