Flip Y
This commit is contained in:
parent
ee8df14426
commit
a37ae364f0
|
@ -418,6 +418,7 @@ void APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) {
|
|||
|
||||
GLfloat hw = ((GLfloat) width) / 2.0f;
|
||||
GLfloat hh = ((GLfloat) height) / 2.0f;
|
||||
y *= -1; // Flip
|
||||
|
||||
SCREENVIEW_MATRIX[M0] = hw;
|
||||
SCREENVIEW_MATRIX[M5] = -hh;
|
||||
|
|
Loading…
Reference in New Issue
Block a user