summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-06-14 13:29:12 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-06-14 13:29:12 +0200
commite43f7fc98defc3d9a5bc2fe249895d23e490392f (patch)
tree2b2df006edb3d1cbf2f94f698fd99cd6663f93ef /src
parentfbabb105c3427fbbce4dfc3ea9701ba473298206 (diff)
shader: init uniforms to -1
Diffstat (limited to 'src')
-rw-r--r--src/render/Shader.hpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/render/Shader.hpp b/src/render/Shader.hpp
index a9c1f7a6..c43147ab 100644
--- a/src/render/Shader.hpp
+++ b/src/render/Shader.hpp
@@ -7,41 +7,41 @@ class CShader {
public:
~CShader();
- GLuint program = 0;
- GLint proj;
- GLint color;
- GLint tex;
- GLint alpha;
- GLint posAttrib;
- GLint texAttrib;
- GLint discardOpaque;
- GLint discardAlpha;
- GLfloat discardAlphaValue;
-
- GLint topLeft;
- GLint bottomRight;
- GLint fullSize;
- GLint fullSizeUntransformed;
- GLint radius;
- GLint primitiveMultisample;
-
- GLint thick;
-
- GLint halfpixel;
-
- GLint range;
- GLint shadowPower;
-
- GLint applyTint;
- GLint tint;
-
- GLint gradient;
- GLint gradientLength;
- GLint angle;
-
- GLint time;
- GLint distort;
- GLint output;
+ GLuint program = 0;
+ GLint proj = -1;
+ GLint color = -1;
+ GLint tex = -1;
+ GLint alpha = -1;
+ GLint posAttrib = -1;
+ GLint texAttrib = -1;
+ GLint discardOpaque = -1;
+ GLint discardAlpha = -1;
+ GLfloat discardAlphaValue = -1;
+
+ GLint topLeft = -1;
+ GLint bottomRight = -1;
+ GLint fullSize = -1;
+ GLint fullSizeUntransformed = -1;
+ GLint radius = -1;
+ GLint primitiveMultisample = -1;
+
+ GLint thick = -1;
+
+ GLint halfpixel = -1;
+
+ GLint range = -1;
+ GLint shadowPower = -1;
+
+ GLint applyTint = -1;
+ GLint tint = -1;
+
+ GLint gradient = -1;
+ GLint gradientLength = -1;
+ GLint angle = -1;
+
+ GLint time = -1;
+ GLint distort = -1;
+ GLint output = -1;
GLint getUniformLocation(const std::string&);