This commit is contained in:
Branimir Karadžić 2014-10-05 18:20:05 -07:00
parent 657234f002
commit d90b754bae

View file

@ -1061,8 +1061,8 @@ RENDERDOC_IMPORT
D3D11_VIEWPORT vp; D3D11_VIEWPORT vp;
vp.TopLeftX = 0; vp.TopLeftX = 0;
vp.TopLeftY = 0; vp.TopLeftY = 0;
vp.Width = (float)width; vp.Width = (float)width;
vp.Height = (float)height; vp.Height = (float)height;
vp.MinDepth = 0.0f; vp.MinDepth = 0.0f;
vp.MaxDepth = 1.0f; vp.MaxDepth = 1.0f;
deviceCtx->RSSetViewports(1, &vp); deviceCtx->RSSetViewports(1, &vp);
@ -2862,8 +2862,8 @@ RENDERDOC_IMPORT
D3D11_VIEWPORT vp; D3D11_VIEWPORT vp;
vp.TopLeftX = rect.m_x; vp.TopLeftX = rect.m_x;
vp.TopLeftY = rect.m_y; vp.TopLeftY = rect.m_y;
vp.Width = rect.m_width; vp.Width = rect.m_width;
vp.Height = rect.m_height; vp.Height = rect.m_height;
vp.MinDepth = 0.0f; vp.MinDepth = 0.0f;
vp.MaxDepth = 1.0f; vp.MaxDepth = 1.0f;
deviceCtx->RSSetViewports(1, &vp); deviceCtx->RSSetViewports(1, &vp);
@ -3038,9 +3038,9 @@ RENDERDOC_IMPORT
if (viewHasScissor) if (viewHasScissor)
{ {
D3D11_RECT rc; D3D11_RECT rc;
rc.left = viewScissorRect.m_x; rc.left = viewScissorRect.m_x;
rc.top = viewScissorRect.m_y; rc.top = viewScissorRect.m_y;
rc.right = viewScissorRect.m_x + viewScissorRect.m_width; rc.right = viewScissorRect.m_x + viewScissorRect.m_width;
rc.bottom = viewScissorRect.m_y + viewScissorRect.m_height; rc.bottom = viewScissorRect.m_y + viewScissorRect.m_height;
deviceCtx->RSSetScissorRects(1, &rc); deviceCtx->RSSetScissorRects(1, &rc);
} }
@ -3051,9 +3051,9 @@ RENDERDOC_IMPORT
scissorRect.intersect(viewScissorRect, _render->m_rectCache.m_cache[scissor]); scissorRect.intersect(viewScissorRect, _render->m_rectCache.m_cache[scissor]);
scissorEnabled = true; scissorEnabled = true;
D3D11_RECT rc; D3D11_RECT rc;
rc.left = scissorRect.m_x; rc.left = scissorRect.m_x;
rc.top = scissorRect.m_y; rc.top = scissorRect.m_y;
rc.right = scissorRect.m_x + scissorRect.m_width; rc.right = scissorRect.m_x + scissorRect.m_width;
rc.bottom = scissorRect.m_y + scissorRect.m_height; rc.bottom = scissorRect.m_y + scissorRect.m_height;
deviceCtx->RSSetScissorRects(1, &rc); deviceCtx->RSSetScissorRects(1, &rc);
} }