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:
lightningterror 2019-07-15 22:32:45 +02:00
parent 557f50fb4e
commit 56b8612502
1 changed files with 2 additions and 2 deletions

View File

@ -638,8 +638,8 @@ GSTexture* GSDevice11::CreateSurface(int type, int w, int h, int format)
memset(&desc, 0, sizeof(desc));
desc.Width = std::max(1, w); // texture min is 1 for dx
desc.Height = std::max(1, h);
desc.Width = std::max(1, std::min(w, 8192)); // Texture limit for D3D10 min 1, max 8192
desc.Height = std::max(1, std::min(h, 8192));
desc.Format = (DXGI_FORMAT)format;
desc.MipLevels = 1;
desc.ArraySize = 1;