From 8c557cec834a9ca0ae33cb4355624a37f015448d Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 9 Jun 2015 08:39:32 -0600 Subject: layers: LunarXChange #55 fix - Only print DS state when we have last bound DS --- layers/draw_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 4271e4c0..3306e371 100755 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1297,7 +1297,7 @@ static void printDSConfig(const VkCmdBuffer cb) char tmp_str[1024]; char ds_config_str[1024*256] = {0}; // TODO : Currently making this buffer HUGE w/o overrun protection. Need to be smarter, start smaller, and grow as needed. GLOBAL_CB_NODE* pCB = getCBNode(cb); - if (pCB) { + if (pCB && pCB->lastBoundDescriptorSet) { SET_NODE* pSet = getSetNode(pCB->lastBoundDescriptorSet); POOL_NODE* pPool = getPoolNode(pSet->pool); // Print out pool details -- cgit v1.2.3