mirror of https://github.com/encounter/SDL.git
Fix warning: enumeration value 'SDL_BLENDMODE_INVALID' not explicitly handled in switch
This commit is contained in:
parent
3ec4c9b3b9
commit
790fa3156c
|
@ -1206,6 +1206,9 @@ IsSupportedBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
|
|||
case SDL_BLENDMODE_MUL:
|
||||
return SDL_TRUE;
|
||||
|
||||
case SDL_BLENDMODE_INVALID:
|
||||
return SDL_FALSE;
|
||||
|
||||
default:
|
||||
return renderer->SupportsBlendMode && renderer->SupportsBlendMode(renderer, blendMode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue