diff --git a/CorsixTH/Src/th_gfx_sdl.cpp b/CorsixTH/Src/th_gfx_sdl.cpp
index fc534ec..e3fb05e 100644
--- a/CorsixTH/Src/th_gfx_sdl.cpp
+++ b/CorsixTH/Src/th_gfx_sdl.cpp
@@ -601,6 +601,14 @@ void THRenderTarget::_flushZoomBuffer()
SDL_RenderCopy(m_pRenderer, m_pZoomTexture, nullptr, nullptr);
SDL_DestroyTexture(m_pZoomTexture);
m_pZoomTexture = nullptr;
+
+ const char *msg = SDL_GetError();
+ if(msg[0] != '\0')
+ {
+ printf("SDL error: %s\n", msg);
+ SDL_ClearError();
+ }
+
}
//! Convert legacy 8bpp sprite data to recoloured 32bpp data, using special recolour table 0xFF.