From 39a2a05a3c2e9cee3a21ae2fa587e4624a40465b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 12 Jul 2026 20:53:02 -0700 Subject: [PATCH] Fixed warnings. (#3830) --- src/renderer_d3d12.cpp | 2 +- src/renderer_vk.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;