glsl: remove stray/unneeded totalSize assignment
authorBrian Paul <brianp@vmware.com>
Tue, 10 Mar 2009 23:09:52 +0000 (17:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Mar 2009 00:25:38 +0000 (18:25 -0600)
src/mesa/shader/slang/slang_codegen.c

index d8246ae75f8e5cb5670e0a888573f1c36e3b2798..8663054a9de2cbf8416f3e56f66001d582944107 100644 (file)
@@ -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;