src/render/direct3d/SDL_render_d3d.c
changeset 11739 d6c857a74735
parent 11737 0c134b939fd9
child 11811 5d94cb6b24d3
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Fri Dec 08 11:33:27 2017 -0800
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Fri Dec 08 11:34:32 2017 -0800
     1.3 @@ -1077,7 +1077,9 @@
     1.4  static int
     1.5  D3D_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
     1.6  {
     1.7 -    D3D_ActivateRenderer(renderer);
     1.8 +    if (D3D_ActivateRenderer(renderer) < 0) {
     1.9 +        return -1;
    1.10 +    }
    1.11  
    1.12      return D3D_SetRenderTargetInternal(renderer, texture);
    1.13  }