mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2026-11-04 12:12:20 +00:00
fix small mistake in orthographic matrix setup (would've clobbered z axis if it was used)
This commit is contained in:
1 parent
284b7b32a6
commit
8ce1cca1ef
1 file changed
+1
-1
@@ -276,7 +276,7 @@ void SetDrawViewport(size size)
|
||||
float mat[16] = {
|
||||
s.x, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, -s.y, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 1.0f, 0.0f,
|
||||
-1.0f, 1.0f, 0.0f, 1.0f};
|
||||
glUniformMatrix4fv(uView, 1, GL_FALSE, mat);
|
||||
glUniform2f(uScaleFact, 1.0f / (float)size.w, 1.0f / (float)size.h);
|
||||
|
||||
Reference in new issue
Block a user