glsl: Fix handling of function calls inside nested loops.
[mesa.git] / src / glsl / glsl_symbol_table.h
index 62d26b89ac4b5d6c3506219fc2e9aefe3fe712d7..0e62448e2e7ca6c4ff5df1a3ce44afa4ddc5b6e2 100644 (file)
@@ -121,6 +121,14 @@ public:
                                   enum ir_variable_mode mode);
    /*@}*/
 
+   /**
+    * Disable a previously-added variable so that it no longer appears to be
+    * in the symbol table.  This is necessary when gl_PerVertex is redeclared,
+    * to ensure that previously-available built-in variables are no longer
+    * available.
+    */
+   void disable_variable(const char *name);
+
 private:
    symbol_table_entry *get_entry(const char *name);