mirror of https://github.com/PCSX2/pcsx2.git
gsdx-d3d11: Set maximum allowed texture size to d3d10 limits which is 8192.
Should prevent any issues if we ever go over the limit.
This commit is contained in:
parent
557f50fb4e
commit
56b8612502
|
@ -638,8 +638,8 @@ GSTexture* GSDevice11::CreateSurface(int type, int w, int h, int format)
|
||||||
|
|
||||||
memset(&desc, 0, sizeof(desc));
|
memset(&desc, 0, sizeof(desc));
|
||||||
|
|
||||||
desc.Width = std::max(1, w); // texture min is 1 for dx
|
desc.Width = std::max(1, std::min(w, 8192)); // Texture limit for D3D10 min 1, max 8192
|
||||||
desc.Height = std::max(1, h);
|
desc.Height = std::max(1, std::min(h, 8192));
|
||||||
desc.Format = (DXGI_FORMAT)format;
|
desc.Format = (DXGI_FORMAT)format;
|
||||||
desc.MipLevels = 1;
|
desc.MipLevels = 1;
|
||||||
desc.ArraySize = 1;
|
desc.ArraySize = 1;
|
||||||
|
|
Loading…
Reference in New Issue