Browse Source

Vk: Fix dangling device memory references

Why? Why did I write that line like that?

Signed-off-by: Squareys <Squareys@googlemail.com>
pull/202/head
Squareys 10 years ago
parent
commit
27b3876b37
  1. 2
      src/Magnum/Vk/Image.cpp

2
src/Magnum/Vk/Image.cpp

@ -48,7 +48,7 @@ std::unique_ptr<DeviceMemory> Image::allocateDeviceMemory(Vk::MemoryProperty mem
std::unique_ptr<DeviceMemory> memory(new Vk::DeviceMemory{*_device, memReqs.size, memoryTypeIndex}); std::unique_ptr<DeviceMemory> memory(new Vk::DeviceMemory{*_device, memReqs.size, memoryTypeIndex});
bindImageMemory(*memory); bindImageMemory(*memory);
return std::unique_ptr<DeviceMemory>{}; return memory;
} }
Image& Image::update(Queue& queue, CommandPool& pool, const void* sourceData, UnsignedLong size, UnsignedLong destOffset) { Image& Image::update(Queue& queue, CommandPool& pool, const void* sourceData, UnsignedLong size, UnsignedLong destOffset) {

Loading…
Cancel
Save