Skip to content

Commit

Permalink
Check if data format is already set to sRGB
Browse files Browse the repository at this point in the history
  • Loading branch information
timoore committed Nov 1, 2023
1 parent f1eaecf commit df39906
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assimp/assimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ SamplerData SceneConverter::convertTexture(const aiMaterial& material, aiTexture
case VK_FORMAT_R8G8_UNORM:
samplerImage.data->properties.format = VK_FORMAT_R8G8_SRGB;
break;
case VK_FORMAT_R8G8B8A8_SRGB:
case VK_FORMAT_R8_SRGB:
case VK_FORMAT_R8G8_SRGB:
// Probably set by us already
break;
default:
vsg::warn("Can't set format ", samplerImage.data->properties.format, "to sRGB.");
break;
Expand Down

0 comments on commit df39906

Please sign in to comment.