diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-04-06 11:09:26 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:33:28 +0800 |
| commit | 30afea947cdc336128743e0a23fd6246b9d33bde (patch) | |
| tree | fd5cb93398a78db69841439cc49ed4df544a68fe /layers/draw_state.cpp | |
| parent | 8871bed5f39d7d8f5c37045293e7c8b1801003a8 (diff) | |
| download | usermoji-30afea947cdc336128743e0a23fd6246b9d33bde.tar.xz | |
layers: Use brackets for if in previous fix
Diffstat (limited to 'layers/draw_state.cpp')
| -rw-r--r-- | layers/draw_state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index a1cb3c36..9245e0ba 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -2582,8 +2582,9 @@ XGL_LAYER_EXPORT void XGLAPI xglCmdBeginRenderPass(XGL_CMD_BUFFER cmdBuffer, con addCmd(pCB, CMD_BEGINRENDERPASS); pCB->activeRenderPass = pRenderPassBegin->renderPass; pCB->framebuffer = pRenderPassBegin->framebuffer; - if (pCB->lastBoundPipeline) + if (pCB->lastBoundPipeline) { validatePipelineState(pCB, XGL_PIPELINE_BIND_POINT_GRAPHICS, pCB->lastBoundPipeline); + } } else { char str[1024]; sprintf(str, "Attempt to use CmdBuffer %p that doesn't exist!", (void*)cmdBuffer); |
