Handle bounding boxes of 1 and 2 component types properly

This commit is contained in:
baldurk
2015-07-07 10:17:58 +02:00
parent dd9aff3890
commit 4444da212d
+5
View File
@@ -1394,6 +1394,11 @@ namespace renderdocui.Windows
{
minBounds[el] = new Vec3f(float.MaxValue, float.MaxValue, float.MaxValue);
maxBounds[el] = new Vec3f(-float.MaxValue, -float.MaxValue, -float.MaxValue);
if (bufferFormats[el].format.compCount == 1)
minBounds[el].y = maxBounds[el].y = minBounds[el].z = maxBounds[el].z = 0.0f;
if (bufferFormats[el].format.compCount == 2)
minBounds[el].z = maxBounds[el].z = 0.0f;
}
while (!finished)