summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-09-01 15:52:10 +1000
committerTimothy Arceri <[email protected]>2015-09-17 11:28:21 +1000
commit12af915e27e4f10bc4c29f1cc8119b28ba27d874 (patch)
treeba02e02deb202ab76af541486a36df60f299a6ac /src/glsl
parentdcd9cd03837545055ce2a315e7e8840cc3254d1a (diff)
glsl: make variables private
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/link_uniforms.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 879c4885384..238546ba22e 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -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.
*/
@@ -827,17 +838,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.
*/
unsigned shader_samplers_used;