From 141d961d847111b2596f9c3094d5ebf1639c8c24 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck Date: Fri, 30 Dec 2011 08:48:43 -0700 Subject: [PATCH] glsl: fix usage of potentially undefined data_end union Reviewed-by: Ian Romanick Signed-off-by: Brian Paul --- src/glsl/link_uniforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index c7de480a573..b331db705cf 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -365,9 +365,9 @@ link_assign_uniform_locations(struct gl_shader_program *prog) for (unsigned i = 0; i < num_user_uniforms; i++) { assert(uniforms[i].storage != NULL); } -#endif assert(parcel.values == data_end); +#endif prog->NumUserUniformStorage = num_user_uniforms; prog->UniformStorage = uniforms; -- 2.30.2