| Summary: | Unable to SDL_SetRenderTarget to original surface for software renderer without a window | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Damian Kaczmarek <rush> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
Test showing the reported problem
Fix the issue by explicitly setting renderer's window to backing surface |
||
|
Description
Damian Kaczmarek
2014-07-12 23:45:17 UTC
Created attachment 1749 [details]
Fix the issue by explicitly setting renderer's window to backing surface
Actually please scratch the "WORKS properly for SDL 2.0.3" part. I actually have fixed this problem in SDL sources before but couldn't connect the dots due to the other bug also occurring at the same time. I attach a patch which fixes the problem. Please review if doesn't break anything else. In my opinion it makes sense as "window" is assumed for all renderers so for the software renderer setting window to its backing surface makes only sense.
Your patch looks good, thanks! https://hg.libsdl.org/SDL/rev/f061a86fbb08 |