We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5176 - Crash on window resize (Direct3D)
Summary: Crash on window resize (Direct3D)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.12
Hardware: x86 Windows 10
: P1 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-08 06:43 UTC by Egor Pavlov
Modified: 2020-06-08 06:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Pavlov 2020-06-08 06:43:21 UTC
Crash happens in RenderCopy/RenderCopyEx on window resize (since SDL 2.0.10). 
Just play with window size few seconds and you get massive SDL_RENDER_TARGETS_RESET flooding, that wasn't happens in 2.0.9 and before. x64 affected too. You may use this app for tests:

https://drive.google.com/file/d/1VhriuG5uDtSKf-a4rwOaORIV75xcGwHE/view?usp=sharing
Comment 1 Egor Pavlov 2020-06-08 06:58:54 UTC
Setting up the "SDL_HINT_RENDER_BATCHING" to "1" helps if renderer created for  a specified driver.