[D3D12] Don't drop draw calls with no render targets

This commit is contained in:
Triang3l
2019-04-12 16:59:45 +03:00
parent 93a18a517b
commit ecc056912d
2 changed files with 14 additions and 7 deletions

View File

@@ -1210,10 +1210,7 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
// Set up the render targets - this may bind pipelines.
if (!render_target_cache_->UpdateRenderTargets(pixel_shader)) {
// Doesn't actually draw.
// TODO(Triang3l): Do something so memexport still works in this case maybe?
// Not distingushing between no operation and a true failure.
return true;
return false;
}
const RenderTargetCache::PipelineRenderTarget* pipeline_render_targets =
render_target_cache_->GetCurrentPipelineRenderTargets();