Skip to content

Commit

Permalink
Fix undefined behavior: do not reference an out-of-scope variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sultim-t-nv committed Jun 17, 2024
1 parent 14a16eb commit 5f110cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dxvk/rtx_render/rtx_nrd_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ namespace dxvk {
// Static sampler descriptors
std::vector<VkDescriptorImageInfo> samplerDescs;
samplerDescs.resize(denoiserDesc.samplersNum);
// DUMMY
for (size_t i = 0; i < denoiserDesc.samplersNum; i++) {

const VkDescriptorSetLayoutBinding& binding = computePipeline.bindings[i];
Expand Down

0 comments on commit 5f110cb

Please sign in to comment.