mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
d3d11 clear fix when no depth buffer is enabled
This commit is contained in:
parent
2de541fb18
commit
77f551f65e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user