mesa/es3.1: Allow GL_DEPTH_STENCIL_TEXTURE_MODE
authorMarta Lofstedt <marta.lofstedt@intel.com>
Mon, 11 May 2015 13:03:51 +0000 (15:03 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 3 Aug 2015 09:31:04 +0000 (12:31 +0300)
GLES 3.1 must support the parameter GL_DEPTH_STENCIL_TEXTURE_MODE.

Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/texparam.c

index 88c2c142804f6d06f22c3613e8ab1a8020f625cf..c0611c3e489e527501403c1c37d5226c6f2db807 100644 (file)
@@ -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;