From ed2d6b17309fdfc89edd52b779d5188316b33f93 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 22 Jun 2021 13:44:30 +1000 Subject: [PATCH] (d3d11) Don't draw content without a texture bound --- gfx/drivers/d3d11.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index a81c21fadb..84479be872 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -1611,10 +1611,9 @@ static bool d3d11_gfx_frame( D3D11SetPShaderSamplers( context, 0, 1, &d3d11->samplers[RARCH_FILTER_UNSPEC][RARCH_WRAP_DEFAULT]); D3D11SetVShaderConstantBuffers(context, 0, 1, &d3d11->frame.ubo); + D3D11Draw(context, 4, 0); } - D3D11Draw(context, 4, 0); - D3D11SetRasterizerState(context, d3d11->scissor_enabled); D3D11SetScissorRects(d3d11->context, 1, &d3d11->scissor); D3D11SetBlendState(context, d3d11->blend_enable, NULL, D3D11_DEFAULT_SAMPLE_MASK);