Merge pull request #20704 from dragmz/patch-2

Fix uniform set for mat3 and mat4
This commit is contained in:
Thomas Herzog 2018-08-04 08:10:44 +02:00 committed by GitHub
commit b34d2efedb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}