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);