glsl: remove incorrect 'struct' keyword
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
ir_variable is a class, not a struct.  Fixes an MSVC warning.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/glsl/ast_to_hir.cpp

index 5157661b39eca7c6e15bc58a3157026ed1bfd618..d450aa1e40d307a5a1d821e64c166630d42e8f30 100644 (file)
@@ -4058,7 +4058,7 @@ ast_uniform_block::hir(exec_list *instructions,
       decl_list->hir(&declared_variables, state);
 
       foreach_list_const(node, &declared_variables) {
-        struct ir_variable *var = (ir_variable *)node;
+        ir_variable *var = (ir_variable *)node;
 
         struct gl_uniform_buffer_variable *ubo_var =
            &ubo->Uniforms[ubo->NumUniforms++];