Changeset 8a40f4b in opengl-game


Ignore:
Timestamp:
Aug 26, 2019, 3:02:27 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
17714b8
Parents:
721e8be
Message:

Fix a memory leak that occured when a VkImage was being populated from an SDL_Texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r721e8be r8a40f4b  
    11881188         // TODO: Should probably check that the function succeeded
    11891189         vkFlushMappedMemoryRanges(device, 1, &mappedMemoryRange);
    1190 
    11911190         vkUnmapMemory(device, stagingBufferMemory);
     1191
     1192         delete[] pixels;
    11921193
    11931194         transitionImageLayout(image, VK_FORMAT_R8G8B8A8_UNORM, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
Note: See TracChangeset for help on using the changeset viewer.