Skip to content

Commit

Permalink
Not using uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchvoltage committed Aug 26, 2023
1 parent 66a2f6c commit 543c540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vkloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ ktxTexture_VkUploadEx_WithPotentialSuballocator(ktxTexture* This, ktxVulkanDevic

// Linear tiled images can be directly used as textures.
vkTexture->image = mappableImage;
vkTexture->deviceMemory = mappableMemory;
if (!useSuballocator) vkTexture->deviceMemory = mappableMemory;

if (This->generateMipmaps) {
generateMipmaps(vkTexture, vdi,
Expand Down

0 comments on commit 543c540

Please sign in to comment.