diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-11 14:13:34 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-17 10:20:49 -0700 |
| commit | 1710d8d2cd8b73668c19bec9cad34e40b2aa68f8 (patch) | |
| tree | 53c242eaa72124a61971db835b7a56e60568e78d /layers/draw_state.c | |
| parent | 3ee56f121cce1c0d96fdc60566afa71db45413b0 (diff) | |
| download | usermoji-1710d8d2cd8b73668c19bec9cad34e40b2aa68f8.tar.xz | |
intel: Remove scissor enable and scissor count
bug #12925
header version: r29511
Remove separate scissor enable and scissor count. Scissor always
enabled and must always provide scissor rect for every viewport.
Diffstat (limited to 'layers/draw_state.c')
| -rw-r--r-- | layers/draw_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/draw_state.c b/layers/draw_state.c index c07367f8..0fa5b7cf 100644 --- a/layers/draw_state.c +++ b/layers/draw_state.c @@ -293,13 +293,13 @@ static void insertDynamicState(const XGL_DYNAMIC_STATE_OBJECT state, const GENER if (XGL_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO == pCreateInfo->sType) { XGL_DYNAMIC_VP_STATE_CREATE_INFO* pVPCI = (XGL_DYNAMIC_VP_STATE_CREATE_INFO*)pStateNode->pCreateInfo; XGL_VIEWPORT** ppViewports = (XGL_VIEWPORT**)&pVPCI->pViewports; - size_t vpSize = sizeof(XGL_VIEWPORT) * pVPCI->viewportCount; + size_t vpSize = sizeof(XGL_VIEWPORT) * pVPCI->viewportAndScissorCount; if (vpSize) { *ppViewports = (XGL_VIEWPORT*)malloc(vpSize); memcpy(*ppViewports, ((XGL_DYNAMIC_VP_STATE_CREATE_INFO*)pCreateInfo)->pViewports, vpSize); } XGL_RECT** ppScissors = (XGL_RECT**)&pVPCI->pScissors; - size_t scSize = sizeof(XGL_RECT) * pVPCI->scissorCount; + size_t scSize = sizeof(XGL_RECT) * pVPCI->viewportAndScissorCount; if (scSize) { *ppScissors = (XGL_RECT*)malloc(scSize); memcpy(*ppScissors, ((XGL_DYNAMIC_VP_STATE_CREATE_INFO*)pCreateInfo)->pScissors, scSize); |
