mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
Direct3D9: Fix window being 1 solid pixel after unminimising (Thanks 123DMWM/source)
Also fixes CEF plugin always crashing
This commit is contained in:
parent
e413f763ad
commit
c93465d065
@ -72,7 +72,7 @@ static void CreateD3D9Instance(void) {
|
||||
cc_result res;
|
||||
// still to check: managed texture perf, driver reset
|
||||
// consider optimised CreateTexture??
|
||||
if (true || Options_GetBool("gfx-direct3d9ex", false)) {
|
||||
if (_Direct3DCreate9Ex && Options_GetBool("gfx-direct3d9ex", false)) {
|
||||
res = _Direct3DCreate9Ex(D3D_SDK_VERSION, &d3d);
|
||||
if (res == D3DERR_NOTAVAILABLE) {
|
||||
/* Direct3D9Ex not supported, fallback to normal Direct3D9 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user