Skip to content

Commit

Permalink
Fix set, but never read variable withi nMVKDevice::getFirstViewIndexI…
Browse files Browse the repository at this point in the history
…nMetalPass.
  • Loading branch information
nlutsenko authored Oct 9, 2024
1 parent 07a87ad commit 838bc4d
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 838bc4d

Please sign in to comment.