From 0100107fc12ed7d8f530053ff28e559f4e43d182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 27 Aug 2015 22:13:43 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d12.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 23ecf6de..6a83f372 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -1392,6 +1392,13 @@ namespace bgfx { namespace d3d12 vp.MaxDepth = 1.0f; m_commandList->RSSetViewports(1, &vp); + D3D12_RECT rc; + rc.left = 0; + rc.top = 0; + rc.right = width; + rc.bottom = height; + m_commandList->RSSetScissorRects(1, &rc); + const uint64_t state = 0 | BGFX_STATE_RGB_WRITE | BGFX_STATE_ALPHA_WRITE