mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 21:40:41 +00:00
Vk pixel history: fix scissor test bug
For when scissor offset is negative
This commit is contained in:
committed by
Baldur Karlsson
parent
138881f7aa
commit
ff4a632fbf
@@ -1716,9 +1716,9 @@ private:
|
||||
{
|
||||
const VkOffset2D &offset = pScissors[i].offset;
|
||||
const VkExtent2D &extent = pScissors[i].extent;
|
||||
if((m_CallbackInfo.x >= (uint32_t)offset.x) && (m_CallbackInfo.y >= (uint32_t)offset.y) &&
|
||||
(m_CallbackInfo.x < (offset.x + extent.width)) &&
|
||||
(m_CallbackInfo.y < (offset.y + extent.height)))
|
||||
if(((int32_t)m_CallbackInfo.x >= offset.x) && ((int32_t)m_CallbackInfo.y >= offset.y) &&
|
||||
((int32_t)m_CallbackInfo.x < ((int64_t)offset.x + (int64_t)extent.width)) &&
|
||||
((int32_t)m_CallbackInfo.y < ((int64_t)offset.y + (int64_t)extent.height)))
|
||||
inRegion = true;
|
||||
else
|
||||
inAllRegions = false;
|
||||
|
||||
Reference in New Issue
Block a user