mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
direct3d11: we don't need to create all the blend states up front
This commit is contained in:
@@ -787,11 +787,8 @@ static HRESULT D3D11_CreateDeviceResources(SDL_Renderer *renderer)
|
||||
}
|
||||
|
||||
/* Create blending states: */
|
||||
if (!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_BLEND) ||
|
||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_ADD) ||
|
||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_MOD) ||
|
||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_MUL)) {
|
||||
/* D3D11_CreateBlendMode will set the SDL error, if it fails */
|
||||
if (!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_BLEND)) {
|
||||
/* D3D11_CreateBlendState will set the SDL error, if it fails */
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user