diff --git a/src/render/wiiu/SDL_render_wiiu.c b/src/render/wiiu/SDL_render_wiiu.c index e83dcd362e..156c50a6f7 100644 --- a/src/render/wiiu/SDL_render_wiiu.c +++ b/src/render/wiiu/SDL_render_wiiu.c @@ -28,6 +28,7 @@ #include "../SDL_sysrender.h" #include "SDL_render_wiiu.h" +#include #include #include @@ -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);