diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2020-05-19 14:48:19 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2020-05-19 14:51:11 +0300 |
commit | fad7e72fd45b9720897f5ac4f5589bb627150cad (patch) | |
tree | 763bc40a845d2866081a340802df839e8075d8d4 /TracyVulkan.hpp | |
parent | dd4c2cf9faf25416d02fc764c3f29376b4ed98da (diff) |
Harden against uninitialized rpmalloc.
Initialize rpmalloc either by explicitly calling InitRPMallocThread(),
or by forcing initialization of thread local variables block.
Diffstat (limited to 'TracyVulkan.hpp')
-rw-r--r-- | TracyVulkan.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index e258f001..68efea58 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -271,6 +271,7 @@ private: static inline VkCtx* CreateVkContext( VkPhysicalDevice physdev, VkDevice device, VkQueue queue, VkCommandBuffer cmdbuf ) { + InitRPMallocThread(); auto ctx = (VkCtx*)tracy_malloc( sizeof( VkCtx ) ); new(ctx) VkCtx( physdev, device, queue, cmdbuf ); return ctx; |