Loading

Paste #pnrkc3cqr

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

Comments