mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Unload screenshot widget texture early (#14482)
This commit is contained in:
parent
d832ce15d6
commit
8e9d19568c
@ -193,6 +193,11 @@ static void gfx_widget_screenshot_free(void)
|
|||||||
gfx_widget_screenshot_dispose(NULL);
|
gfx_widget_screenshot_dispose(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void gfx_widget_screenshot_context_destroy(void)
|
||||||
|
{
|
||||||
|
gfx_widget_screenshot_dispose(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
static void gfx_widget_screenshot_frame(void* data, void *user_data)
|
static void gfx_widget_screenshot_frame(void* data, void *user_data)
|
||||||
{
|
{
|
||||||
static float pure_white[16] = {
|
static float pure_white[16] = {
|
||||||
@ -379,7 +384,7 @@ const gfx_widget_t gfx_widget_screenshot = {
|
|||||||
gfx_widget_screenshot_init,
|
gfx_widget_screenshot_init,
|
||||||
gfx_widget_screenshot_free,
|
gfx_widget_screenshot_free,
|
||||||
NULL, /* context_reset*/
|
NULL, /* context_reset*/
|
||||||
NULL, /* context_destroy */
|
gfx_widget_screenshot_context_destroy,
|
||||||
NULL, /* layout */
|
NULL, /* layout */
|
||||||
gfx_widget_screenshot_iterate,
|
gfx_widget_screenshot_iterate,
|
||||||
gfx_widget_screenshot_frame
|
gfx_widget_screenshot_frame
|
||||||
|
Loading…
x
Reference in New Issue
Block a user