aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-06-09 08:39:32 -0600
committerTobin Ehlis <tobin@lunarg.com>2015-06-10 13:06:54 -0600
commit8c557cec834a9ca0ae33cb4355624a37f015448d (patch)
tree704f4b52cd1744faef27a415f4748ef7d2b0d47d /layers/draw_state.cpp
parentd9d7070937ed9f1c3180f3ea7c810af81f118706 (diff)
downloadusermoji-8c557cec834a9ca0ae33cb4355624a37f015448d.tar.xz
layers: LunarXChange #55 fix - Only print DS state when we have last bound DS
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