Merge pull request #3771 from frangarcj/frangarcj-overlay-1

(VITA) Wait for rendering before free overlays
This commit is contained in:
Twinaphex 2016-10-10 19:53:10 +02:00 committed by GitHub
commit f28c4115e9

View File

@ -114,6 +114,9 @@ static void vita2d_render_overlay(void *data);
static void vita2d_free_overlay(vita_video_t *vita)
{
unsigned i;
vita2d_wait_rendering_done();
for (i = 0; i < vita->overlays; i++)
vita2d_free_texture(vita->overlay[i].tex);
free(vita->overlay);