Replace reinterpret_cast from/to pointers to BitCast

This commit is contained in:
SirLynix
2024-01-03 17:19:42 +01:00
parent 6d1e7d7852
commit cd8c1cb160
10 changed files with 25 additions and 23 deletions

View File

@@ -34,7 +34,7 @@ namespace Nz
NazaraAssert(shaderStages == shaderStage, "when supplying GLSL, only one shader stage type can be specified");
auto& entry = m_shaders.emplace_back();
entry.shader = GlslShader{ std::string(reinterpret_cast<const char*>(source), std::size_t(sourceSize)) };
entry.shader = GlslShader{ std::string(static_cast<const char*>(source), sourceSize) };
entry.stage = shaderStage;
break;
}