d3d11 clear fix when no depth buffer is enabled

This commit is contained in:
Noel Berry 2021-02-22 15:15:31 -08:00
parent 2de541fb18
commit 77f551f65e

View File

@ -364,7 +364,7 @@ namespace Blah
if (((int)mask & (int)ClearMask::Color) == (int)ClearMask::Color)
{
for (int i = 0; i < m_attachments.size() - 1; i++)
for (int i = 0; i < color_views.size(); i++)
state.context->ClearRenderTargetView(color_views[i], col);
}