projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f17d6
)
layers: don't memset layer data in get_my_data_ptr
author
Mike Stroyan
<mike@LunarG.com>
Fri, 25 Sep 2015 22:34:13 +0000
(16:34 -0600)
committer
Mike Stroyan
<mike@LunarG.com>
Fri, 25 Sep 2015 22:34:13 +0000
(16:34 -0600)
get_my_data_ptr was zeroing data after using new.
It should leave the layer data as its constructor set it.
layers/vk_layer_data.h
patch
|
blob
|
history
diff --git
a/layers/vk_layer_data.h
b/layers/vk_layer_data.h
index efdf574f31f41418090b40e23bc286412aed3cd4..263603b121321575b0874c66e3efdbf632d05a1c 100644
(file)
--- a/
layers/vk_layer_data.h
+++ b/
layers/vk_layer_data.h
@@
-43,7
+43,6
@@
DATA_T *get_my_data_ptr(void *data_key,
if ( got == layer_data_map.end() ) {
debug_data = new DATA_T;
- memset(debug_data, 0, sizeof(*debug_data));
layer_data_map[(void *) data_key] = debug_data;
} else {
debug_data = got->second;