Skip to content

Commit

Permalink
render/wiiu: DestroyRenderer: Wait for the rendering to finish and fr…
Browse files Browse the repository at this point in the history
…ee texture draw data
  • Loading branch information
rw-r-r-0644 committed Mar 18, 2019
1 parent 12b9b80 commit 16c1ea9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/render/wiiu/SDL_render_wiiu.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "../SDL_sysrender.h"
#include "SDL_render_wiiu.h"

#include <gx2/event.h>
#include <gx2/registers.h>
#include <gx2r/surface.h>

Expand Down Expand Up @@ -164,7 +165,10 @@ void WIIU_SDL_DestroyRenderer(SDL_Renderer * renderer)
{
WIIU_RenderData *data = (WIIU_RenderData *) renderer->driverdata;

GX2DrawDone();

WIIU_FreeRenderData(data);
WIIU_TextureDoneRendering(data);

free(data->ctx);

Expand Down

0 comments on commit 16c1ea9

Please sign in to comment.