gsdx-d3d11: ensure texture size of at least 1x1

This commit is contained in:
Kojin 2019-05-11 13:40:15 -04:00 committed by lightningterror
parent 9a5225dfdf
commit 2d46bc661d
1 changed files with 2 additions and 2 deletions

View File

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