mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Handle state changes on first event in a command buffer. Closes #2648
* When selecting the first event in a command buffer the render state wouldn't properly be updated. This is particularly bad if the state that changed is being in/out of a renderpass.
This commit is contained in:
@@ -1090,7 +1090,8 @@ bool WrappedVulkan::Serialise_vkBeginCommandBuffer(SerialiserType &ser, VkComman
|
||||
|
||||
for(auto it = submissions.begin(); it != submissions.end(); ++it)
|
||||
{
|
||||
if(it->baseEvent <= m_LastEventID && m_LastEventID < (it->baseEvent + length))
|
||||
if(RDCMAX(1U, it->baseEvent) - 1 <= m_LastEventID &&
|
||||
m_LastEventID < (it->baseEvent + length))
|
||||
{
|
||||
#if ENABLED(VERBOSE_PARTIAL_REPLAY)
|
||||
RDCDEBUG("vkBegin - partial detected %u < %u < %u, %s -> %s", it->baseEvent,
|
||||
|
||||
Reference in New Issue
Block a user