mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 19:36:29 +00:00
Fix warning: enumeration value 'SDL_BLENDMODE_INVALID' not explicitly handled in switch
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user