mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fix viewport being upside down in OpenGL renderer.
Fixes Bugzilla #2207.
This commit is contained in:
parent
4295a92f97
commit
4f39f0115b
@ -925,7 +925,7 @@ GL_UpdateViewport(SDL_Renderer * renderer)
|
|||||||
data->glMatrixMode(GL_PROJECTION);
|
data->glMatrixMode(GL_PROJECTION);
|
||||||
data->glLoadIdentity();
|
data->glLoadIdentity();
|
||||||
if (renderer->viewport.w && renderer->viewport.h) {
|
if (renderer->viewport.w && renderer->viewport.h) {
|
||||||
if (renderer->target) {
|
if (!renderer->target) {
|
||||||
data->glOrtho((GLdouble) 0,
|
data->glOrtho((GLdouble) 0,
|
||||||
(GLdouble) renderer->viewport.w,
|
(GLdouble) renderer->viewport.w,
|
||||||
(GLdouble) 0,
|
(GLdouble) 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user