mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08: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: */
|
/* Create blending states: */
|
||||||
if (!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_BLEND) ||
|
if (!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_BLEND)) {
|
||||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_ADD) ||
|
/* D3D11_CreateBlendState will set the SDL error, if it fails */
|
||||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_MOD) ||
|
|
||||||
!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_MUL)) {
|
|
||||||
/* D3D11_CreateBlendMode will set the SDL error, if it fails */
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user