glsl: make variables private
authorTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 1 Sep 2015 05:52:10 +0000 (15:52 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 17 Sep 2015 01:28:21 +0000 (11:28 +1000)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/link_uniforms.cpp

index 879c4885384aa0497e74c8e407138808861f9c88..238546ba22ec8053ad5da4be9b2c8827a5ba66bb 100644 (file)
@@ -808,6 +808,17 @@ private:
    unsigned next_image;
    unsigned next_subroutine;
 
+   /**
+    * Field counter is used to take care that uniform structures
+    * with explicit locations get sequential locations.
+    */
+   unsigned field_counter;
+
+   /**
+    * Current variable being processed.
+    */
+   ir_variable *current_var;
+
    /* Used to store the explicit location from current_var so that we can
     * reuse the location field for storing the uniform slot id.
     */
@@ -826,17 +837,6 @@ public:
 
    gl_texture_index targets[MAX_SAMPLERS];
 
-   /**
-    * Current variable being processed.
-    */
-   ir_variable *current_var;
-
-   /**
-    * Field counter is used to take care that uniform structures
-    * with explicit locations get sequential locations.
-    */
-   unsigned field_counter;
-
    /**
     * Mask of samplers used by the current shader stage.
     */