mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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 <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
4f8e4a95db
commit
a4bde371c7
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue