glsl2: Unmark unwritten varyings as varying.
authorEric Anholt <eric@anholt.net>
Wed, 28 Jul 2010 20:42:36 +0000 (13:42 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Jul 2010 21:04:54 +0000 (14:04 -0700)
This fixes an assertion failure in ir_to_mesa, and the varying won't
take up varying space.

src/glsl/linker.cpp

index e7bc7000290ec7c5beebe1cca1e7bd0dab79f8af..ec3cc01d4046127909797275d43deeec1ebd1769 100644 (file)
@@ -1132,6 +1132,7 @@ assign_varying_locations(gl_shader *producer, gl_shader *consumer)
        * by the previous stage.
        */
       var->shader_in = (var->location != -1);
+      var->mode = ir_var_auto;
    }
 }