mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
mesa: Don't set dispatch pointers for glClearDepth or glDepthRange in ES2
NOTE: This is a candidate for the 9.0 branch
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 2a3a68e4c7)
This commit is contained in:
parent
de4e222794
commit
961567d0fe
1 changed files with 8 additions and 2 deletions
|
|
@ -206,7 +206,10 @@ _mesa_create_exec_table(struct gl_context *ctx)
|
|||
_mesa_init_dlist_dispatch(exec);
|
||||
}
|
||||
|
||||
SET_ClearDepth(exec, _mesa_ClearDepth);
|
||||
if (ctx->API != API_OPENGLES2) {
|
||||
SET_ClearDepth(exec, _mesa_ClearDepth);
|
||||
}
|
||||
|
||||
if (ctx->API == API_OPENGL) {
|
||||
SET_ClearIndex(exec, _mesa_ClearIndex);
|
||||
SET_ClipPlane(exec, _mesa_ClipPlane);
|
||||
|
|
@ -214,7 +217,10 @@ _mesa_create_exec_table(struct gl_context *ctx)
|
|||
}
|
||||
SET_DepthFunc(exec, _mesa_DepthFunc);
|
||||
SET_DepthMask(exec, _mesa_DepthMask);
|
||||
SET_DepthRange(exec, _mesa_DepthRange);
|
||||
|
||||
if (ctx->API != API_OPENGLES2) {
|
||||
SET_DepthRange(exec, _mesa_DepthRange);
|
||||
}
|
||||
|
||||
if (ctx->API != API_OPENGLES2 && ctx->API != API_OPENGL_CORE) {
|
||||
_mesa_init_drawpix_dispatch(exec);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue