diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index be762644d..e24073f2f 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -747,9 +747,9 @@ namespace bgfx { namespace d3d12 , m_winPixEvent(NULL) , m_featureLevel(D3D_FEATURE_LEVEL(0) ) , m_swapChain(NULL) - , m_backBufferDepthStencil(NULL) , m_currentColor(NULL) , m_currentDepthStencil(NULL) + , m_backBufferDepthStencil(NULL) , m_wireframe(false) , m_lost(false) , m_maxAnisotropy(1) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index 359e5ed12..a8e5647ac 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -4206,7 +4206,7 @@ VK_IMPORT_DEVICE const VkResult result = vkAllocateDescriptorSets(m_device, &dsai, &descriptorSet); if (VK_SUCCESS != result - && m_descriptorPoolIdx + 1 < kMaxDescriptorPoolChunks) + && uint32_t(m_descriptorPoolIdx + 1) < kMaxDescriptorPoolChunks) { ++m_descriptorPoolIdx;