vulkan: fix some more memory leaks

This commit is contained in:
niki
2022-07-11 01:47:34 +02:00
parent 0759e8d513
commit c5327bfc4f
4 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -204,11 +204,11 @@ namespace love {
uint32_t imageIndex = 0;
bool framebufferResized = false;
VmaAllocator vmaAllocator = VK_NULL_HANDLE;
graphics::Texture* standardTexture = nullptr;
std::unique_ptr<Texture> standardTexture = nullptr;
std::unique_ptr<StreamBuffer> quadIndexBuffer = nullptr;
// we need an array of draw buffers, since the frames are being rendered asynchronously
// and we can't (or shouldn't) update the contents of the buffers while they're still in flight / being rendered.
std::vector<BatchedDrawBuffers> batchedDrawBuffers;
StreamBuffer* quadIndexBuffer = nullptr;
graphics::Texture* currentTexture = nullptr;
std::vector<std::pair<graphics::Shader::BuiltinUniformData, graphics::StreamBuffer*>> uniformBufferMap;
std::vector<std::pair<DecriptorSetConfiguration, std::vector<VkDescriptorSet>>> descriptorSetsMap;