Unload screenshot widget texture early (#14482)

This commit is contained in:
sonninnos 2022-10-06 01:06:41 +03:00 committed by GitHub
parent d832ce15d6
commit 8e9d19568c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,6 +193,11 @@ static void gfx_widget_screenshot_free(void)
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 float pure_white[16] = {
@ -379,7 +384,7 @@ const gfx_widget_t gfx_widget_screenshot = {
gfx_widget_screenshot_init,
gfx_widget_screenshot_free,
NULL, /* context_reset*/
NULL, /* context_destroy */
gfx_widget_screenshot_context_destroy,
NULL, /* layout */
gfx_widget_screenshot_iterate,
gfx_widget_screenshot_frame