From 3706aa99041b5fa5f92b4ec7f960289417b0c3fd Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Tue, 15 Jan 2019 19:34:00 +0100 Subject: [PATCH] ClearVRAM detection improved --- gfx/drivers/ps2_gfx.c | 1 + libretro-common/include/libretro_gskit_ps2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/gfx/drivers/ps2_gfx.c b/gfx/drivers/ps2_gfx.c index aab0c8f021..5971c53676 100644 --- a/gfx/drivers/ps2_gfx.c +++ b/gfx/drivers/ps2_gfx.c @@ -418,6 +418,7 @@ static bool ps2_get_hw_render_interface(void* data, const struct retro_hw_render_interface** iface) { ps2_video_t* ps2 = (ps2_video_t*)data; + ps2->iface.clearTexture = ps2->clearVRAM; *iface = (const struct retro_hw_render_interface*)&ps2->iface; return true; } diff --git a/libretro-common/include/libretro_gskit_ps2.h b/libretro-common/include/libretro_gskit_ps2.h index 5a8406aa92..e1e978d4c5 100644 --- a/libretro-common/include/libretro_gskit_ps2.h +++ b/libretro-common/include/libretro_gskit_ps2.h @@ -47,6 +47,7 @@ struct retro_hw_render_interface_gskit_ps2 * in this interface. */ GSTEXTURE *coreTexture; + bool clearTexture; }; typedef struct retro_hw_render_interface_gskit_ps2 RETRO_HW_RENDER_INTEFACE_GSKIT_PS2;