Skip to content
Permalink
Browse files

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

  • Loading branch information...
tadanokojin authored and lightningterror committed May 11, 2019
1 parent 9a5225d commit 2d46bc661d08365722147db7d1b32f9cf52dd6e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/GSdx/Renderers/DX11/GSDevice11.cpp
@@ -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;

0 comments on commit 2d46bc6

Please sign in to comment.
You can’t perform that action at this time.