From 2500a5d20f478590149b13a9810b9e43cad924d8 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 15 Sep 2017 12:23:13 +0200 Subject: [PATCH] glsl: allocate locations for built-in uniform variables (hack) Signed-off-by: Samuel Pitoiset --- src/compiler/glsl/link_uniforms.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index 7d141549f5..f26329e26f 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -1196,10 +1196,6 @@ link_setup_uniform_remap_tables(struct gl_context *ctx, prog->data->UniformStorage[i].is_shader_storage) continue; - /* Built-in uniforms should not get any location. */ - if (prog->data->UniformStorage[i].builtin) - continue; - /* Explicit ones have been set already. */ if (prog->data->UniformStorage[i].remap_location != UNMAPPED_UNIFORM_LOC) continue; -- 2.14.1