From 2d46bc661d08365722147db7d1b32f9cf52dd6e1 Mon Sep 17 00:00:00 2001 From: Kojin Date: Sat, 11 May 2019 13:40:15 -0400 Subject: [PATCH] gsdx-d3d11: ensure texture size of at least 1x1 --- plugins/GSdx/Renderers/DX11/GSDevice11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp index e727997238..c30d9ba7dc 100644 --- a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp +++ b/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;