From b157d15e434d68409422a7a1231552c3c754a141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Tue, 23 Feb 2021 12:54:14 -0800 Subject: [PATCH] Cleanup. --- src/renderer_vk.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index 543d69823..1e2934856 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -2641,7 +2641,6 @@ VK_IMPORT_DEVICE { TextureVK& texture = m_textures[_handle.idx]; - VkImage srcImage = texture.m_textureImage; uint32_t height = bx::uint32_max(1, texture.m_height >> _mip); uint32_t pitch = texture.m_readback.pitch(_mip); uint32_t size = height * pitch; @@ -4676,7 +4675,7 @@ VK_DESTROY VK_CHECK(vkMapMemory(device, m_deviceMem, 0, m_size, 0, (void**)&m_data) ); } - + void ScratchBufferVK::destroy() { reset(); @@ -6654,7 +6653,7 @@ VK_DESTROY if (!acquireImage() ) return; } - + const uint64_t f0 = BGFX_STATE_BLEND_FACTOR; const uint64_t f1 = BGFX_STATE_BLEND_INV_FACTOR; const uint64_t f2 = BGFX_STATE_BLEND_FACTOR<<4;