Added check for failure of D3D_ActivateRenderer()
This commit is contained in:
parent
507ab36373
commit
644fefb7ac
1 changed files with 3 additions and 1 deletions
|
@ -1077,7 +1077,9 @@ D3D_SetRenderTargetInternal(SDL_Renderer * renderer, SDL_Texture * texture)
|
|||
static int
|
||||
D3D_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||
{
|
||||
D3D_ActivateRenderer(renderer);
|
||||
if (D3D_ActivateRenderer(renderer) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return D3D_SetRenderTargetInternal(renderer, texture);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue