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 5439

Summary: [PATCH] Implement hint to select Direct3D 9Ex
Product: SDL Reporter: Cameron Gutman <cameron.gutman>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 10   
Attachments: Patch

Description Cameron Gutman 2021-01-02 20:53:26 UTC
I build SDL with USE_D3D9EX defined to avoid having my renderer state reset each time the user hits a UAC prompt. It would be nice to expose this as a hint that can be set at runtime rather than requiring those that want D3D9Ex to recompile SDL themselves.

I have added a new SDL_HINT_WINDOWS_USE_D3D9EX hint to do this.
Comment 1 Cameron Gutman 2021-01-02 20:53:49 UTC
Created attachment 4631 [details]
Patch
Comment 2 Sam Lantinga 2021-01-03 18:23:50 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/b7b993826ee5