Rework window management to fix issues restoring window state between windowed and full-screen
This commit is contained in:
parent
220f50ebe4
commit
38396b2691
3 changed files with 23 additions and 69 deletions
|
|
@ -643,6 +643,9 @@ bool DXVA2Renderer::initializeDevice(SDL_Window* window, bool enableVsync)
|
|||
// in a separate thread with this device.
|
||||
int deviceFlags = D3DCREATE_MULTITHREADED;
|
||||
|
||||
// We don't need D3D to mess with our window at all. SDL does that.
|
||||
deviceFlags |= D3DCREATE_NOWINDOWCHANGES;
|
||||
|
||||
if (deviceCaps.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) {
|
||||
deviceFlags |= D3DCREATE_HARDWARE_VERTEXPROCESSING;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue