ClearVRAM detection improved

This commit is contained in:
Francisco Javier Trujillo Mata 2019-01-15 19:34:00 +01:00
parent f7c9bc4e61
commit 3706aa9904
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;