Save used topology BEFORE setting it to point list

This commit is contained in:
baldurk
2016-02-07 18:47:28 +01:00
parent 06549f2647
commit 5cbb2653d3
+5 -2
View File
@@ -3902,6 +3902,9 @@ void VulkanDebugManager::InitPostVSBuffers(uint32_t frameID, uint32_t eventID)
// set primitive topology to point list
VkPipelineInputAssemblyStateCreateInfo *ia = (VkPipelineInputAssemblyStateCreateInfo *)pipeCreateInfo.pInputAssemblyState;
VkPrimitiveTopology topo = ia->topology;
ia->topology = VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
// enable rasterizer discard
@@ -4399,8 +4402,8 @@ void VulkanDebugManager::InitPostVSBuffers(uint32_t frameID, uint32_t eventID)
state = prevstate;
// fill out m_PostVSData
m_PostVSData[idx].vsin.topo = pipeCreateInfo.pInputAssemblyState->topology;
m_PostVSData[idx].vsout.topo = pipeCreateInfo.pInputAssemblyState->topology;
m_PostVSData[idx].vsin.topo = topo;
m_PostVSData[idx].vsout.topo = topo;
m_PostVSData[idx].vsout.buf = meshBuffer;
m_PostVSData[idx].vsout.bufmem = meshMem;