mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-06 22:05:39 +00:00
Fix epsilon check being too strict for equality depth checks
This commit is contained in:
@@ -3201,12 +3201,12 @@ This is primarily used internally and should not be needed to be called external
|
||||
if(depthBits == 24)
|
||||
{
|
||||
shadDepth = float(uint32_t(float(shadDepth * 0xffffff))) / float(0xffffff);
|
||||
eps = float(1.0f) / float(0xffffff);
|
||||
eps = float(1.5f) / float(0xffffff);
|
||||
}
|
||||
else if(depthBits == 16)
|
||||
{
|
||||
shadDepth = float(uint32_t(float(shadDepth * 0xffff))) / float(0xffff);
|
||||
eps = float(1.0f) / float(0xffff);
|
||||
eps = float(1.5f) / float(0xffff);
|
||||
}
|
||||
|
||||
bool passed = true;
|
||||
|
||||
Reference in New Issue
Block a user