Skip to content

Commit 6dec311

Browse files
fixed binding name cmp ops
1 parent d7324d0 commit 6dec311

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

ZEngine/ZEngine/Hardwares/VulkanDevice.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,9 @@ namespace ZEngine::Hardwares
11031103
if (image_count != SwapchainImageCount)
11041104
{
11051105
ZENGINE_CORE_WARN("Max Swapchain image count supported is {}, but requested {}", image_count, SwapchainImageCount);
1106-
SwapchainImageCount = image_count;
1107-
ZENGINE_CORE_WARN("Swapchain image count has changed from {} to {}", SwapchainImageCount, image_count);
1106+
auto old_swapchain_image_count = SwapchainImageCount;
1107+
SwapchainImageCount = image_count;
1108+
ZENGINE_CORE_WARN("Swapchain image count has changed from {} to {}", old_swapchain_image_count, image_count);
11081109
}
11091110

11101111
if (SwapchainImageViews.capacity() <= 0)

ZEngine/ZEngine/Rendering/Renderers/GraphicRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace ZEngine::Rendering::Renderers
8585
// RenderGraph->AddCallbackPass("Skybox Pass", skybox_pass);
8686
RenderGraph->AddCallbackPass("Grid Pass", grid_pass);
8787
RenderGraph->AddCallbackPass("G-Buffer Pass", gbuffer_pass);
88-
// RenderGraph->AddCallbackPass("Lighting Pass", lighting_pass);
88+
// RenderGraph->AddCallbackPass("Lighting Pass", lighting_pass);
8989

9090
RenderGraph->Setup();
9191
RenderGraph->Compile();

ZEngine/ZEngine/Rendering/Shaders/Shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ namespace ZEngine::Rendering::Shaders
266266
for (const auto& layout_binding : LayoutBindingSpecificationMap)
267267
{
268268
const auto& binding_specification_collection = layout_binding.second;
269-
auto find_it = std::find_if(binding_specification_collection.begin(), binding_specification_collection.end(), [&](const LayoutBindingSpecification& spec) { return Helpers::secure_strcmp(spec.Name, name); });
269+
auto find_it = std::find_if(binding_specification_collection.begin(), binding_specification_collection.end(), [&](const LayoutBindingSpecification& spec) { return Helpers::secure_strcmp(spec.Name, name) == 0; });
270270

271271
if (find_it != std::end(binding_specification_collection))
272272
{

0 commit comments

Comments
 (0)