Fix stencil pixel picking - it comes back as uint32, not float

This commit is contained in:
baldurk
2016-07-13 15:53:15 +02:00
parent ee63587813
commit d4e78f785c
+1 -1
View File
@@ -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
{