From d90b754bae0f5275674e45020a0553bd55ee3d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 5 Oct 2014 18:20:05 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d11.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index ca4164b0..1515cf00 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -1061,8 +1061,8 @@ RENDERDOC_IMPORT D3D11_VIEWPORT vp; vp.TopLeftX = 0; vp.TopLeftY = 0; - vp.Width = (float)width; - vp.Height = (float)height; + vp.Width = (float)width; + vp.Height = (float)height; vp.MinDepth = 0.0f; vp.MaxDepth = 1.0f; deviceCtx->RSSetViewports(1, &vp); @@ -2862,8 +2862,8 @@ RENDERDOC_IMPORT D3D11_VIEWPORT vp; vp.TopLeftX = rect.m_x; vp.TopLeftY = rect.m_y; - vp.Width = rect.m_width; - vp.Height = rect.m_height; + vp.Width = rect.m_width; + vp.Height = rect.m_height; vp.MinDepth = 0.0f; vp.MaxDepth = 1.0f; deviceCtx->RSSetViewports(1, &vp); @@ -3038,9 +3038,9 @@ RENDERDOC_IMPORT if (viewHasScissor) { D3D11_RECT rc; - rc.left = viewScissorRect.m_x; - rc.top = viewScissorRect.m_y; - rc.right = viewScissorRect.m_x + viewScissorRect.m_width; + rc.left = viewScissorRect.m_x; + rc.top = viewScissorRect.m_y; + rc.right = viewScissorRect.m_x + viewScissorRect.m_width; rc.bottom = viewScissorRect.m_y + viewScissorRect.m_height; deviceCtx->RSSetScissorRects(1, &rc); } @@ -3051,9 +3051,9 @@ RENDERDOC_IMPORT scissorRect.intersect(viewScissorRect, _render->m_rectCache.m_cache[scissor]); scissorEnabled = true; D3D11_RECT rc; - rc.left = scissorRect.m_x; - rc.top = scissorRect.m_y; - rc.right = scissorRect.m_x + scissorRect.m_width; + rc.left = scissorRect.m_x; + rc.top = scissorRect.m_y; + rc.right = scissorRect.m_x + scissorRect.m_width; rc.bottom = scissorRect.m_y + scissorRect.m_height; deviceCtx->RSSetScissorRects(1, &rc); }