Skip to content

Commit 3b04327

Browse files
fix typos causing issues
1 parent a713b4f commit 3b04327

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/nbl/asset/IFramebuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class IFramebuffer
9696
if (!attachments[i])
9797
return true;
9898
// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFramebufferCreateInfo.html#VUID-VkFramebufferCreateInfo-commonparent
99-
if (rp->isCompatibleDevicewise(attachments[i].get()))
99+
if (!rp->isCompatibleDevicewise(attachments[i].get()))
100100
return true;
101101

102102
const auto& viewParams = attachments[i]->getCreationParameters();

src/nbl/video/IGPUCommandBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ bool IGPUCommandBuffer::pushConstants(const IGPUPipelineLayout* const layout, co
749749
if (!checkStateBeforeRecording(queue_flags_t::COMPUTE_BIT|queue_flags_t::GRAPHICS_BIT))
750750
return false;
751751

752-
if (!layout || this->isCompatibleDevicewise(layout))
752+
if (!layout || !this->isCompatibleDevicewise(layout))
753753
return false;
754754

755755
if (!m_cmdpool->m_commandListPool.emplace<IGPUCommandPool::CPushConstantsCmd>(m_commandList, core::smart_refctd_ptr<const IGPUPipelineLayout>(layout)))

0 commit comments

Comments
 (0)