From a604ca1f6d60a67082d6ef45de5fb0f8e5462a33 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sun, 10 Mar 2024 21:38:49 +1100 Subject: [PATCH] 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 --- .../0001-wined3d-Use-bindless-textures-for-GLSL-shaders.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/wined3d-bindless-texture/0001-wined3d-Use-bindless-textures-for-GLSL-shaders.patch b/patches/wined3d-bindless-texture/0001-wined3d-Use-bindless-textures-for-GLSL-shaders.patch index e89da9bb..162ff820 100644 --- a/patches/wined3d-bindless-texture/0001-wined3d-Use-bindless-textures-for-GLSL-shaders.patch +++ b/patches/wined3d-bindless-texture/0001-wined3d-Use-bindless-textures-for-GLSL-shaders.patch @@ -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);