Updated wined3d-bindless-texture patchset

If ctx_data->glsl_program is null use the 0 location.

Fixes crash
https://bugs.winehq.org/show_bug.cgi?id=56370
This commit is contained in:
Alistair Leslie-Hughes 2024-03-10 21:38:49 +11:00
parent 445948eee3
commit a604ca1f6d

View File

@ -234,7 +234,7 @@ index 4141a39b00f..60fb4e18706 100644
+ sampler = device->null_sampler;
+
+ 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));
+ name_loc = GL_EXTCALL(glGetUniformLocation(ctx_data->glsl_program ? ctx_data->glsl_program->id : 0, sampler_name->buffer));
+ if (name_loc == -1)
+ {
+ ERR("No uniform location at %u, %s\n", i, sampler_name->buffer);