Skip to content

Commit

Permalink
Merge pull request #2370 from nlutsenko/patch-1
Browse files Browse the repository at this point in the history
Fix set, but never read variable within MVKDevice::getFirstViewIndexInMetalPass.
  • Loading branch information
billhollings authored Oct 9, 2024
2 parents 07a87ad + 838bc4d commit da408fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4534,7 +4534,7 @@ static uint32_t mvkGetEntryProperty(io_registry_entry_t entry, CFStringRef prope
uint32_t mask = viewMask;
uint32_t startView = 0, viewCount = 0;
if ( !_physicalDevice->canUseInstancingForMultiview() ) {
for (uint32_t i = 0; mask != 0; ++i) {
while (mask != 0) {
mask = mvkGetNextViewMaskGroup(mask, &startView, &viewCount);
while (passIdx-- > 0 && viewCount-- > 0) {
startView++;
Expand Down

0 comments on commit da408fc

Please sign in to comment.