diff --git a/renderdoc/driver/vulkan/vk_shaderdebug.cpp b/renderdoc/driver/vulkan/vk_shaderdebug.cpp index 19f85540a..79c35a315 100644 --- a/renderdoc/driver/vulkan/vk_shaderdebug.cpp +++ b/renderdoc/driver/vulkan/vk_shaderdebug.cpp @@ -405,7 +405,7 @@ public: for(int i = 0; i < 4; i++) coords[i] = uintComp(coord, i); - if(coords[0] > data.width || coords[1] > data.height || coords[2] > data.depth) + if(coords[0] >= data.width || coords[1] >= data.height || coords[2] >= data.depth) { if(!IsDeviceThread()) return rdcspv::DeviceOpResult::NeedsDevice; @@ -548,7 +548,7 @@ public: for(int i = 0; i < 4; i++) coords[i] = uintComp(coord, i); - if(coords[0] > data.width || coords[1] > data.height || coords[2] > data.depth) + if(coords[0] >= data.width || coords[1] >= data.height || coords[2] >= data.depth) { if(!IsDeviceThread()) return rdcspv::DeviceOpResult::NeedsDevice;