mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
Re-add SDL_assert() with non boolean ptr syntax (#8531)
This commit is contained in:
parent
c29df1699e
commit
f3419d8c04
37 changed files with 73 additions and 73 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue