Skip to content

Commit 07c2ff8

Browse files
Fix IFileArchive and check that ex 29 is bugged
1 parent 0dbb22f commit 07c2ff8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples_tests/29.SpecializationConstants/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <nabla.h>
77

88
#include "../common/CommonAPI.h"
9-
// #include "CFileSystem.h"
109
using namespace nbl;
1110
using namespace core;
1211
using namespace ui;
@@ -155,7 +154,7 @@ class SpecializationConstantsSampleApp : public ApplicationBase
155154
initOutp.system = system;
156155
CommonAPI::Init(
157156
initOutp,
158-
video::EAT_OPENGL,
157+
video::EAT_VULKAN,
159158
"29.SpecializationConstants",
160159
requiredInstanceFeatures,
161160
optionalInstanceFeatures,

examples_tests/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ N = No support
6060
| FREE_SLOT | | | | | | | | | |
6161
| 27.PLYSTLDemo | Y | Y | B | S | S | S | N | N | COMPILE_WITH_STL_LOADER & COMPILE_WITH_PLY_LOADER |
6262
| FREE_SLOT | | | | | | | | | |
63-
| 29.SpecializationConstants | S | S | S | S | S | S | N | S | |
63+
| 29.SpecializationConstants | B | B | B | S | S | S | N | S | |
6464
| FREE_SLOT | | | | | | | | | |
6565
| FREE_SLOT | | | | | | | | | |
6666
| FREE_SLOT | | | | | | | | | |

include/nbl/system/IFileArchive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class IFileArchive : public core::IReferenceCounted
8181
{
8282
const IFileArchive::SListEntry itemToFind = { pathRelativeToArchive };
8383
const auto found = std::lower_bound(m_items.begin(),m_items.end(),itemToFind);
84-
if (found!=m_items.end() || found->pathRelativeToArchive!=pathRelativeToArchive)
84+
if (found==m_items.end() || found->pathRelativeToArchive!=pathRelativeToArchive)
8585
return nullptr;
8686
return &(*found);
8787
}

0 commit comments

Comments
 (0)