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

Summary: Crash on window resize (Direct3D)
Product: SDL Reporter: Egor Pavlov <egor-pvl>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P1 CC: egor-pvl
Version: 2.0.12   
Hardware: x86   
OS: Windows 10   

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.