diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-04-06 11:00:38 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:33:28 +0800 |
| commit | 8871bed5f39d7d8f5c37045293e7c8b1801003a8 (patch) | |
| tree | b56d631c65d1126f7d66e254b1b6cda7331d0634 /layers/draw_state.cpp | |
| parent | 955dc488fd1e199d13d01c9f0155a5906170ac33 (diff) | |
| download | usermoji-8871bed5f39d7d8f5c37045293e7c8b1801003a8.tar.xz | |
layers: Check for valid pipeline before validating
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 bbbcb582..a1cb3c36 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -2582,7 +2582,8 @@ XGL_LAYER_EXPORT void XGLAPI xglCmdBeginRenderPass(XGL_CMD_BUFFER cmdBuffer, con addCmd(pCB, CMD_BEGINRENDERPASS); pCB->activeRenderPass = pRenderPassBegin->renderPass; pCB->framebuffer = pRenderPassBegin->framebuffer; - validatePipelineState(pCB, XGL_PIPELINE_BIND_POINT_GRAPHICS, 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); |
