aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/draw_state.cpp')
-rwxr-xr-xlayers/draw_state.cpp2
1 files changed, 1 insertions, 1 deletions
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