SDL_SetRenderDrawBlendMode(): Remove redundant param check
This commit is contained in:
1 parent
7252633345
commit
b63c32e790
1 file changed
-4
@@ -3366,10 +3366,6 @@ bool SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
|
||||
return SDL_InvalidParamError("blendMode");
|
||||
}
|
||||
|
||||
if (blendMode == SDL_BLENDMODE_INVALID) {
|
||||
return SDL_InvalidParamError("blendMode");
|
||||
}
|
||||
|
||||
if (!IsSupportedBlendMode(renderer, blendMode)) {
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user