OSDN Git Service

glsl: silence unused 'var' variable warning
authorBrian Paul <brianp@vmware.com>
Tue, 22 Oct 2013 22:50:57 +0000 (16:50 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Oct 2013 16:45:47 +0000 (10:45 -0600)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/builtin_variables.cpp

index fc1115b..1f62fcf 100644 (file)
@@ -888,8 +888,8 @@ builtin_variable_generator::generate_varyings()
    if (state->target == geometry_shader) {
       const glsl_type *per_vertex_in_type =
          this->per_vertex_in.construct_interface_instance();
-      ir_variable *var = add_variable("gl_in", array(per_vertex_in_type, 0),
-                                      ir_var_shader_in, -1);
+      add_variable("gl_in", array(per_vertex_in_type, 0),
+                   ir_var_shader_in, -1);
    }
    if (state->target == vertex_shader || state->target == geometry_shader) {
       const glsl_type *per_vertex_out_type =