Skip to content

Commit

Permalink
[lut] fix .CUBE detection
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse committed Jul 7, 2020
1 parent 3f30df9 commit b3e3558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effect_lut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace vkBasalt
int height;
LutCube lutCube;
stbi_uc* pixels;
int32_t usingPNG = (int32_t)(lutFile.find(".cube") != std::string::npos || lutFile.find(".CUBE") != std::string::npos);
int32_t usingPNG = (int32_t)(lutFile.find(".cube") == std::string::npos && lutFile.find(".CUBE") == std::string::npos);
if (!usingPNG)
{
lutCube = LutCube(lutFile);
Expand Down

0 comments on commit b3e3558

Please sign in to comment.