Skip to content

Commit

Permalink
gi: fix unintended bool -> int cast and add glslang init assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Aug 3, 2024
1 parent c51ed74 commit e83c35a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gi/impl/GlslShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ namespace gtl
{
// glslang requires this static initialization, however it internally
// ref-counts and is thread-safe. The return value seems to be unused.
[[maybe_unused]] int r = glslang::InitializeProcess();
[[maybe_unused]] bool result = glslang::InitializeProcess();
assert(result);
}

GiGlslShaderCompiler::~GiGlslShaderCompiler()
Expand Down

0 comments on commit e83c35a

Please sign in to comment.