mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix some std::vector assertion failures
gcc's debug std::vector will assert if you use vector[0] when vector.size() == 0.
This commit is contained in:
committed by
Baldur Karlsson
parent
b54477036d
commit
6e3eef5fca
@@ -294,7 +294,7 @@ void VulkanShaderCache::MakeGraphicsPipelineInfo(VkGraphicsPipelineCreateInfo &p
|
||||
specMapEntries.resize(specEntries);
|
||||
specdata.resize(specSize);
|
||||
|
||||
VkSpecializationMapEntry *entry = &specMapEntries[0];
|
||||
VkSpecializationMapEntry *entry = specMapEntries.data();
|
||||
|
||||
uint32_t stageCount = 0;
|
||||
specSize = 0;
|
||||
|
||||
+2
@@ -398,6 +398,8 @@ public:
|
||||
int argc=static_cast<int>(args.size());
|
||||
std::vector<const char*> argv(argc);
|
||||
|
||||
if (argc<1) return false;
|
||||
|
||||
for (int i=0; i<argc; i++)
|
||||
argv[i]=args[i].c_str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user