From 8197174d698249da0d322f3be4a4c45e5b31c400 Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 12 Aug 2024 13:44:58 -0700 Subject: [PATCH] OpenGL ES Renderer: Fix a bug where the final output framebuffer is Y-flipped. (Regression from commit 3db6d56.) --- desmume/src/OGLRender_ES3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/OGLRender_ES3.cpp b/desmume/src/OGLRender_ES3.cpp index dee5a7618..17e94b88a 100644 --- a/desmume/src/OGLRender_ES3.cpp +++ b/desmume/src/OGLRender_ES3.cpp @@ -108,7 +108,7 @@ void main()\n\ \n\ vtxTexCoord = (texScaleMtx * inTexCoord0) / 16.0;\n\ vtxColor = vec4(inColor / 63.0, polyAlpha);\n\ - gl_Position = inPosition / 4096.0;\n\ + gl_Position = vec4(inPosition.x, -inPosition.y, inPosition.z, inPosition.w) / 4096.0;\n\ }\n\ "};