Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 2640 - Unable to SDL_SetRenderTarget to original surface fo…
…r software renderer without a window

Damian Kaczmarek

Basically this bug is probably not a common use case. My goal is to allow rendering totally without a window, for example to a screenshot and I need to rely on SDL_SetRenderTarget to properly work for a purely software renderer created by SDL_CreateSoftwareRenderer.
  • Loading branch information
slouken committed Jul 13, 2014
1 parent fd1da99 commit 96b613e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/software/SDL_render_sw.c
Expand Up @@ -146,6 +146,7 @@ SW_CreateRendererForSurface(SDL_Surface * surface)
return NULL;
}
data->surface = surface;
data->window = surface;

renderer->WindowEvent = SW_WindowEvent;
renderer->GetOutputSize = SW_GetOutputSize;
Expand Down

0 comments on commit 96b613e

Please sign in to comment.