Re-add SDL_assert() with non boolean ptr syntax (#8531)

This commit is contained in:
Sylvain Becker
2023-11-11 10:29:05 +01:00
committed by GitHub
parent c29df1699e
commit f3419d8c04
37 changed files with 73 additions and 73 deletions

View File

@@ -641,7 +641,7 @@ static void SetDrawState(SDL_Surface *surface, SW_DrawStateCache *drawstate)
if (drawstate->surface_cliprect_dirty) {
const SDL_Rect *viewport = drawstate->viewport;
const SDL_Rect *cliprect = drawstate->cliprect;
SDL_assert_release(viewport); /* the higher level should have forced a SDL_RENDERCMD_SETVIEWPORT */
SDL_assert_release(viewport != NULL); /* the higher level should have forced a SDL_RENDERCMD_SETVIEWPORT */
if (cliprect) {
SDL_Rect clip_rect;