Skip to content

Commit b63c32e

Browse files
SackzementKontrabant
authored andcommitted
SDL_SetRenderDrawBlendMode(): Remove redundant param check
1 parent 7252633 commit b63c32e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/render/SDL_render.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,10 +3366,6 @@ bool SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
33663366
return SDL_InvalidParamError("blendMode");
33673367
}
33683368

3369-
if (blendMode == SDL_BLENDMODE_INVALID) {
3370-
return SDL_InvalidParamError("blendMode");
3371-
}
3372-
33733369
if (!IsSupportedBlendMode(renderer, blendMode)) {
33743370
return SDL_Unsupported();
33753371
}

0 commit comments

Comments
 (0)