mirror of https://github.com/encounter/SDL.git
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