From a0c06b1c7c25d22e56321a287aa80a8b5d56d3fd 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: Thu, 8 Aug 2019 07:58:14 -0700 Subject: [PATCH] Cleanup. --- src/renderer_vk.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index 1a641fb57..ae7cb6234 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -366,6 +366,8 @@ VK_IMPORT_DEVICE void fillInstanceBinding(const ShaderVK* _vsh, VkPipelineVertexInputStateCreateInfo& _vertexInputState, uint32_t _numInstanceData) { + BX_UNUSED(_vsh); + uint32_t numBindings = _vertexInputState.vertexBindingDescriptionCount; uint32_t numAttribs = _vertexInputState.vertexAttributeDescriptionCount; VkVertexInputBindingDescription* inputBinding = const_cast(_vertexInputState.pVertexBindingDescriptions + numBindings); @@ -2513,8 +2515,7 @@ VK_IMPORT_DEVICE | BGFX_STATE_DEPTH_TEST_ALWAYS ; - const VertexDecl* decls[1] = { &m_vertexDecls[_blitter.m_vb->decl.idx] }; - ::VkPipeline pso = getPipeline(state + VkPipeline pso = getPipeline(state , packStencil(BGFX_STENCIL_DEFAULT, BGFX_STENCIL_DEFAULT) , _blitter.m_vb->decl.idx , _blitter.m_program @@ -2613,7 +2614,6 @@ VK_IMPORT_DEVICE scratchBuffer.m_currentDs++; VertexBufferVK& vb = m_vertexBuffers[_blitter.m_vb->handle.idx]; - const VertexDecl& vertexDecl = m_vertexDecls[_blitter.m_vb->decl.idx]; VkDeviceSize offset = 0; vkCmdBindVertexBuffers(m_commandBuffer , 0