From 10c2784c02e905af554ec4c0475bc5910732bb94 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sun, 19 Oct 2014 21:24:29 +0100 Subject: [PATCH] fixes game screen sometimes not showing in combination with some shaders and menu drivers using GL. note: this still doesnt fix the game screen not showing when pause_libretro is set to true. --- frontend/menu/disp/glui.c | 1 + frontend/menu/disp/lakka.c | 1 + frontend/menu/disp/xmb.c | 1 + 3 files changed, 3 insertions(+) diff --git a/frontend/menu/disp/glui.c b/frontend/menu/disp/glui.c index 96dcc98242..60d4be154a 100644 --- a/frontend/menu/disp/glui.c +++ b/frontend/menu/disp/glui.c @@ -137,6 +137,7 @@ static void glui_render_background(bool force_transparency) glBindTexture(GL_TEXTURE_2D, 0); } + gl->shader->use(gl, GL_SHADER_STOCK_BLEND); gl->shader->set_coords(&coords); gl->shader->set_mvp(gl, &gl->mvp_no_rot); diff --git a/frontend/menu/disp/lakka.c b/frontend/menu/disp/lakka.c index ed3bdc6d0c..769de0d424 100644 --- a/frontend/menu/disp/lakka.c +++ b/frontend/menu/disp/lakka.c @@ -184,6 +184,7 @@ static void lakka_draw_background(bool force_transparency) glBindTexture(GL_TEXTURE_2D, 0); } + gl->shader->use(gl, GL_SHADER_STOCK_BLEND); gl->shader->set_coords(&coords); gl->shader->set_mvp(gl, &gl->mvp_no_rot); diff --git a/frontend/menu/disp/xmb.c b/frontend/menu/disp/xmb.c index 24f2055213..92eedb5f9a 100644 --- a/frontend/menu/disp/xmb.c +++ b/frontend/menu/disp/xmb.c @@ -294,6 +294,7 @@ static void xmb_render_background(bool force_transparency) glBindTexture(GL_TEXTURE_2D, 0); } + gl->shader->use(gl, GL_SHADER_STOCK_BLEND); gl->shader->set_coords(&coords); gl->shader->set_mvp(gl, &gl->mvp_no_rot);