Skip to content

Commit

Permalink
bp: Return on invalid image in zcull scope
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jul 16, 2024
1 parent 70f421e commit 298836f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/best_practices/bp_cmd_buffer_nv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void BestPractices::RecordZcullDraw(bp_state::CommandBuffer& cmd_state) {
auto& scope = cmd_state.nv.zcull_scope;

auto image = Get<vvl::Image>(scope.image);
ASSERT_AND_RETURN(image);
if (!image) return;

ForEachSubresource(*image, scope.range, [&scope](uint32_t layer, uint32_t level) {
auto& subresource = scope.tree->GetState(layer, level);
Expand Down

0 comments on commit 298836f

Please sign in to comment.