Handle 32-bit depth as floating point values

This commit is contained in:
baldurk committed 2017-05-16 18:01:30 +01:00
1 parent 2ebcb9a337
commit 9259055286
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ float ConvertComponent(const ResourceFormat &fmt, byte *data)
uint32_t *u32 = (uint32_t *)data;
int32_t *i32 = (int32_t *)data;
if(fmt.compType == CompType::Float)
if(fmt.compType == CompType::Float || fmt.compType == CompType::Depth)
{
return *(float *)u32;
}