Skip to content

Commit

Permalink
gsdx-d3d11: ensure texture size of at least 1x1
Browse files Browse the repository at this point in the history
  • Loading branch information
tadanokojin authored and lightningterror committed May 11, 2019
1 parent 9a5225d commit 2d46bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/GSdx/Renderers/DX11/GSDevice11.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2d46bc6

Please sign in to comment.