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 3203

Summary: Problems with fullscreen window using DirectX11 gamma functionality
Product: SDL Reporter: klose
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Windows 7   

Description klose 2015-12-07 16:04:55 UTC
We are using SDL with DirectX11 and the gamma functionality of DirectX. 

When switching to fullscreen mode and changing the gamma everything works fine.

But when pressing alt + tab and then restoring the window, the window does not switch to fullscreen mode properly, the gamma doesn't work anymore.

DirectX outputs the error: DXGI ERROR: IDXGIOutput::GetGammaControlCapabilities: This function can only be called if TakeOwnership has been called. [ MISCELLANEOUS ERROR #47: ]

But calling TakeOwnership doesn't solve the problem. Switching back to window mode and then back to fullscreen solves the problem.