1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wined3d: Skip bindless samplers with no uniform location.

This can happen legitimately if the sampler access was optimized out.
This commit is contained in:
Zebediah Figura 2024-03-15 16:34:03 -05:00 committed by Alexandre Julliard
parent 58c680bace
commit 37d71415ed

View file

@ -10786,7 +10786,7 @@ static void shader_glsl_load_bindless_samplers(struct shader_glsl_priv *priv, st
string_buffer_sprintf(sampler_name, "%s_sampler%u", prefix, entry->bind_idx);
name_loc = GL_EXTCALL(glGetUniformLocation(ctx_data->glsl_program->id, sampler_name->buffer));
if (name_loc == -1)
ERR("No uniform location for shader %#x, binding %u, name %s.\n", shader_type, i, sampler_name->buffer);
continue;
if ((view = state->shader_resource_view[shader_type][entry->resource_idx]))
{