summaryrefslogtreecommitdiff
path: root/drivers/gles2/shader_gles2.h
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2018-08-04 08:10:44 +0200
committerGitHub <noreply@github.com>2018-08-04 08:10:44 +0200
commitb34d2efedbaf8d0f6074513db686c4eb91311a62 (patch)
treed653be829ce970275348de6b6a3542111687aab1 /drivers/gles2/shader_gles2.h
parentb911165679f906dbb4a18ff5eb0b9ac27c5485dc (diff)
parent477f49616203d9f26c44e071b6f15c775ad31032 (diff)
Merge pull request #20704 from dragmz/patch-2
Fix uniform set for mat3 and mat4
Diffstat (limited to 'drivers/gles2/shader_gles2.h')
-rw-r--r--drivers/gles2/shader_gles2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h
index 0c53c4ba72..49e45eea9f 100644
--- a/drivers/gles2/shader_gles2.h
+++ b/drivers/gles2/shader_gles2.h
@@ -300,7 +300,7 @@ public:
case ShaderLanguage::TYPE_MAT3: {
GLfloat mat[9];
- for (int i = 0; i < 0; i++) {
+ for (int i = 0; i < 9; i++) {
mat[i] = values[i].real;
}
@@ -311,7 +311,7 @@ public:
case ShaderLanguage::TYPE_MAT4: {
GLfloat mat[16];
- for (int i = 0; i < 0; i++) {
+ for (int i = 0; i < 16; i++) {
mat[i] = values[i].real;
}