From: Brian Paul Date: Tue, 10 Mar 2009 23:09:52 +0000 (-0600) Subject: glsl: remove stray/unneeded totalSize assignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0522624c834fc6d4a8803cc469af9dc6f3d4ee14;p=mesa.git glsl: remove stray/unneeded totalSize assignment --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index d8246ae75f8..8663054a9de 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -3014,7 +3014,7 @@ _slang_gen_var_decl(slang_assemble_ctx *A, slang_variable *var, file = PROGRAM_TEMPORARY; } - totalSize = size = _slang_sizeof_type_specifier(&var->type.specifier); + size = _slang_sizeof_type_specifier(&var->type.specifier); if (size <= 0) { slang_info_log_error(A->log, "invalid declaration for '%s'", varName); return NULL;