|
|
@@ -71,7 +71,8 @@ namespace bs
|
|
|
|
|
|
fbDesc.color[i].image = image;
|
|
|
fbDesc.color[i].view = image->getView(surface, true);
|
|
|
- fbDesc.color[i].format = VulkanUtility::getPixelFormat(texture->getProperties().getFormat());
|
|
|
+ fbDesc.color[i].format = VulkanUtility::getPixelFormat(texture->getProperties().getFormat(),
|
|
|
+ texture->getProperties().isHardwareGammaEnabled());
|
|
|
}
|
|
|
|
|
|
if(mDepthStencilSurface != nullptr)
|
|
|
@@ -110,7 +111,8 @@ namespace bs
|
|
|
|
|
|
fbDesc.depth.image = image;
|
|
|
fbDesc.depth.view = image->getView(surface, true);
|
|
|
- fbDesc.depth.format = VulkanUtility::getPixelFormat(texture->getProperties().getFormat());
|
|
|
+ fbDesc.depth.format = VulkanUtility::getPixelFormat(texture->getProperties().getFormat(),
|
|
|
+ texture->getProperties().isHardwareGammaEnabled());
|
|
|
fbDesc.depth.baseLayer = view->getFirstArraySlice();
|
|
|
}
|
|
|
}
|