Skip to content

Commit

Permalink
fix: fix potential null pointer access
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan committed Feb 25, 2023
1 parent dc377f4 commit 6ddb2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/client/src/rendering/shaders/c_shader_lua.cpp
Expand Up @@ -298,6 +298,8 @@ void pragma::LShaderGameWorldLightingPass::RecordBindScene(rendering::ShaderProc
}
std::shared_ptr<prosper::IDescriptorSetGroup> pragma::LShaderGameWorldLightingPass::InitializeMaterialDescriptorSet(CMaterial &mat)
{
if(!m_wrapper)
return nullptr;
auto &shader = *dynamic_cast<prosper::Shader *>(this);
auto descSetGroup = mat.GetDescriptorSetGroup(shader);
if(descSetGroup != nullptr)
Expand Down

0 comments on commit 6ddb2c6

Please sign in to comment.