From 04671d8d62b1085e8a6e7eaaff4de8efe3ad4ce3 Mon Sep 17 00:00:00 2001 From: Roy Tam Date: Mon, 30 Dec 2019 23:57:31 +0800 Subject: [PATCH] patch from Sami: Lowered mMaxTextureSize from 4096 to 2048 to allow older graphic cards --- gfx/layers/d3d9/DeviceManagerD3D9.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gfx/layers/d3d9/DeviceManagerD3D9.cpp b/gfx/layers/d3d9/DeviceManagerD3D9.cpp index 09778bc9c1..35597995ef 100644 --- a/gfx/layers/d3d9/DeviceManagerD3D9.cpp +++ b/gfx/layers/d3d9/DeviceManagerD3D9.cpp @@ -805,13 +805,11 @@ DeviceManagerD3D9::VerifyCaps() if (LACKS_CAP(caps.TextureAddressCaps, D3DPTADDRESSCAPS_CLAMP)) { return false; } - - if (caps.MaxTextureHeight < 4096 || - caps.MaxTextureWidth < 4096) { + //Lowered from 4096 to 2048 to allow older graphic cards + mMaxTextureSize = std::min(caps.MaxTextureHeight, caps.MaxTextureWidth); + if(mMaxTextureSize<2048){ return false; } - mMaxTextureSize = std::min(caps.MaxTextureHeight, caps.MaxTextureWidth); - if ((caps.PixelShaderVersion & 0xffff) < 0x200 || (caps.VertexShaderVersion & 0xffff) < 0x200) { return false;