mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
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:
parent
445948eee3
commit
a604ca1f6d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user