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 - [PATCH] Implement hint to select Direct3D 9Ex
Summary: [PATCH] Implement hint to select Direct3D 9Ex
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 20:53 UTC by Cameron Gutman
Modified: 2021-01-03 18:23 UTC (History)
0 users

See Also:


Attachments
Patch (3.97 KB, patch)
2021-01-02 20:53 UTC, Cameron Gutman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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