mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-09 08:11:06 +00:00
Fix stencil pixel picking - it comes back as uint32, not float
This commit is contained in:
@@ -1030,7 +1030,7 @@ void VulkanReplay::PickPixel(ResourceId texture, uint32_t x, uint32_t y, uint32_
|
||||
// only write stencil to .y
|
||||
if(pass == 1)
|
||||
{
|
||||
pixel[1] = pData[1] / 255.0f;
|
||||
pixel[1] = ((uint32_t *)pData)[1] / 255.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user