From 3b31dafa7e17657995fcda7b8d1c16ea83af371e Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Thu, 6 Jun 2019 20:11:08 +0200 Subject: [PATCH] glcore rotation fix for desmume --- gfx/drivers/gl_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/gl_core.c b/gfx/drivers/gl_core.c index f7fe816b8f..b57cc60ef9 100644 --- a/gfx/drivers/gl_core.c +++ b/gfx/drivers/gl_core.c @@ -1419,7 +1419,7 @@ static void gl_core_set_rotation(void *data, unsigned rotation) if (!gl) return; - gl->rotation = video_driver_is_hw_context() ? 90 * rotation : 270 * rotation; + gl->rotation = video_driver_is_hw_context() && gl->hw_render_bottom_left ? 90 * rotation : 270 * rotation; gl_core_set_projection(gl, &gl_core_default_ortho, true); }