Skip to content

Commit

Permalink
Last SDL3 fix broke building with SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Jul 17, 2024
1 parent 2861989 commit 9bc9b5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Backend/Renderer/SDL_Renderer/BackendRenderTargetSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ namespace tgui
return;

// Store the current blend mode, in case we need to change it
#if SDL_MAJOR_VERSION >= 3
SDL_BlendMode oldBlendMode = SDL_GetRenderDrawBlendMode(m_renderer);
#else
SDL_BlendMode oldBlendMode = SDL_BLENDMODE_BLEND;
SDL_GetRenderDrawBlendMode(m_renderer, &oldBlendMode);
#endif

// Store the current clipping settings, in case we need to change it
SDL_Rect oldClipRect;
Expand Down

0 comments on commit 9bc9b5e

Please sign in to comment.