diff --git a/WickedEngine/wiGraphicsDevice_DX11.cpp b/WickedEngine/wiGraphicsDevice_DX11.cpp index a31063904..20b313385 100644 --- a/WickedEngine/wiGraphicsDevice_DX11.cpp +++ b/WickedEngine/wiGraphicsDevice_DX11.cpp @@ -1573,7 +1573,7 @@ void GraphicsDevice_DX11::CreateBackBufferResources() void GraphicsDevice_DX11::SetResolution(int width, int height) { - if (width != SCREENWIDTH || height != SCREENHEIGHT) + if ((width != SCREENWIDTH || height != SCREENHEIGHT) && width > 0 && height > 0) { SCREENWIDTH = width; SCREENHEIGHT = height; diff --git a/WickedEngine/wiGraphicsDevice_DX12.cpp b/WickedEngine/wiGraphicsDevice_DX12.cpp index 8d26a127d..13d242b3b 100644 --- a/WickedEngine/wiGraphicsDevice_DX12.cpp +++ b/WickedEngine/wiGraphicsDevice_DX12.cpp @@ -2034,7 +2034,7 @@ namespace wiGraphicsTypes void GraphicsDevice_DX12::SetResolution(int width, int height) { - if (width != SCREENWIDTH || height != SCREENHEIGHT) + if ((width != SCREENWIDTH || height != SCREENHEIGHT) && width > 0 && height > 0) { SCREENWIDTH = width; SCREENHEIGHT = height; diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index a20a1803d..e4adfa9d4 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wiVersion // minor features, major updates const int minor = 20; // minor bug fixes, alterations, refactors, updates - const int revision = 5; + const int revision = 6; long GetVersion()