mesa ctx->API --> _mesa_is_foo(ctx)
replaces direct API checks with _mesa_is_...() checks Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8340 Signed-off-by: Volodymyr Obohzyn volodymyr.obozhyn@globallogic.com Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21556>
This commit is contained in:
@@ -1262,7 +1262,7 @@ st_precompile_shader_variant(struct st_context *st,
|
||||
|
||||
memset(&key, 0, sizeof(key));
|
||||
|
||||
if (st->ctx->API == API_OPENGL_COMPAT &&
|
||||
if (_mesa_is_desktop_gl_compat(st->ctx) &&
|
||||
st->clamp_vert_color_in_shader &&
|
||||
(prog->info.outputs_written & (VARYING_SLOT_COL0 |
|
||||
VARYING_SLOT_COL1 |
|
||||
|
Reference in New Issue
Block a user