mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2025-08-03 13:11:32 +00:00
fix small mistake in orthographic matrix setup (would've clobbered z axis if it was used)
This commit is contained in:
@ -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