(Menu) Performance improvement, prevent drawing the menu texture when using a GL menu driver

This commit is contained in:
Jean-André Santoni 2014-10-20 21:26:55 +02:00
parent 49bffb85db
commit a639e6163d

View File

@ -26,7 +26,7 @@ static void draw_frame(void)
if (driver.video_data && driver.video_poke && if (driver.video_data && driver.video_poke &&
driver.video_poke->set_texture_enable) driver.video_poke->set_texture_enable)
driver.video_poke->set_texture_enable(driver.video_data, driver.video_poke->set_texture_enable(driver.video_data,
true, MENU_TEXTURE_FULLSCREEN); driver.menu_ctx && driver.menu_ctx->set_texture, MENU_TEXTURE_FULLSCREEN);
if (!g_settings.menu.pause_libretro) if (!g_settings.menu.pause_libretro)
{ {