Skip to content

Commit

Permalink
Skip rendering models with invalid shader packages
Browse files Browse the repository at this point in the history
  • Loading branch information
redstrate committed Nov 3, 2024
1 parent f63dcbe commit 614f491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderer/src/gamerenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, Camera &camera, Scene &

if (renderMaterial.shaderPackage.p_ptr == nullptr) {
qWarning() << "Invalid shader package!";
continue;
}

std::vector<uint32_t> systemKeys;
Expand Down Expand Up @@ -549,6 +550,7 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, Camera &camera, Scene &

if (renderMaterial.shaderPackage.p_ptr == nullptr) {
qWarning() << "Invalid shader package!";
continue;
}

std::vector<uint32_t> systemKeys;
Expand Down

0 comments on commit 614f491

Please sign in to comment.