mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
patch from Sami<samiwieciekto at gmail.com>: Lowered mMaxTextureSize from 4096 to 2048 to allow older graphic cards
This commit is contained in:
parent
b74770e3f1
commit
04671d8d62
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue