diff --git a/src/internal/graphics_backend_d3d11.cpp b/src/internal/graphics_backend_d3d11.cpp index e14a665..5c91a90 100644 --- a/src/internal/graphics_backend_d3d11.cpp +++ b/src/internal/graphics_backend_d3d11.cpp @@ -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); }