(d3d11) Don't draw content without a texture bound

This commit is contained in:
Connor McLaughlin 2021-06-22 13:44:30 +10:00
parent 9afa30af5e
commit ed2d6b1730

View File

@ -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);