From 9b9536420f1fe958da150b6c9b47cdaa930a40a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 21 Jun 2018 19:10:30 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d12.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 5576827f1..49343ee0f 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -4494,14 +4494,6 @@ namespace bgfx { namespace d3d12 const bool compressed = bimg::isCompressed(bimg::TextureFormat::Enum(m_textureFormat) ); const bool swizzle = TextureFormat::BGRA8 == m_textureFormat && 0 != (m_flags&BGFX_TEXTURE_COMPUTE_WRITE); - uint32_t blockWidth = 1; - uint32_t blockHeight = 1; - - if (convert && compressed) - { - blockWidth = blockInfo.blockWidth; - blockHeight = blockInfo.blockHeight; - } const bool writeOnly = 0 != (m_flags&BGFX_TEXTURE_RT_WRITE_ONLY); const bool computeWrite = 0 != (m_flags&BGFX_TEXTURE_COMPUTE_WRITE);