Skip to content

Commit 2caf5d0

Browse files
authored
Merge pull request #19 from Przemog1/armageddon
Fixes
2 parents b4a5f7d + fc870f1 commit 2caf5d0

File tree

9 files changed

+10
-12
lines changed

9 files changed

+10
-12
lines changed

include/irr/asset/IAsset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class IAsset : virtual public core::IReferenceCounted
231231
inline bool isImmutable_debug()
232232
{
233233
const bool imm = getMutability() == EM_IMMUTABLE;
234-
//_IRR_DEBUG_BREAK_IF(imm);
234+
//_NBL_DEBUG_BREAK_IF(imm);
235235
return imm;
236236
}
237237

include/irr/asset/IAssetLoader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class IAssetLoader : public virtual core::IReferenceCounted
158158
class IAssetLoaderOverride
159159
{
160160
protected:
161-
_IRR_STATIC_INLINE_CONSTEXPR IAsset::E_MUTABILITY ASSET_MUTABILITY_ON_CACHE_INSERT = IAsset::EM_MUTABLE;
161+
_NBL_STATIC_INLINE_CONSTEXPR IAsset::E_MUTABILITY ASSET_MUTABILITY_ON_CACHE_INSERT = IAsset::EM_MUTABLE;
162162

163163
IAssetManager* m_manager;
164164
io::IFileSystem* m_filesystem;

include/irr/asset/IVirtualTexture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
434434
static uint8_t* allocReservedSpaceForAllocator(uint32_t tilesPerDim, uint32_t layers)
435435
{
436436
const size_t tiles = tilesPerDim*tilesPerDim*layers;
437-
void* mem = _IRR_ALIGNED_MALLOC(phys_pg_addr_alctr_t::reserved_size(1u, tiles, 1u), _IRR_SIMD_ALIGNMENT);
437+
void* mem = _NBL_ALIGNED_MALLOC(phys_pg_addr_alctr_t::reserved_size(1u, tiles, 1u), _NBL_SIMD_ALIGNMENT);
438438
return reinterpret_cast<uint8_t*>(mem);
439439
}
440440

@@ -726,7 +726,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
726726
uint32_t pgtabSzSqr = (1u << szxy_log2);
727727
pgtabSzSqr *= pgtabSzSqr;
728728
const size_t spacePerAllocator = pg_tab_addr_alctr_t::reserved_size(pgtabSzSqr, pgtabSzSqr, 1u);
729-
m_pgTabAddrAlctr_reservedSpc = reinterpret_cast<uint8_t*>(_IRR_ALIGNED_MALLOC(spacePerAllocator * _layers, _IRR_SIMD_ALIGNMENT));
729+
m_pgTabAddrAlctr_reservedSpc = reinterpret_cast<uint8_t*>(_NBL_ALIGNED_MALLOC(spacePerAllocator * _layers, _NBL_SIMD_ALIGNMENT));
730730
for (uint32_t i = 0u; i < _layers; ++i)
731731
{
732732
auto& alctr = m_pageTableLayerAllocators[i];

include/irr/asset/material_compiler/IFrontend.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __IRR_MATERIAL_COMPILER_I_FRONTEND_H_INCLUDED__
2-
#define __IRR_MATERIAL_COMPILER_I_FRONTEND_H_INCLUDED__
1+
#ifndef __NBL_MATERIAL_COMPILER_I_FRONTEND_H_INCLUDED__
2+
#define __NBL_MATERIAL_COMPILER_I_FRONTEND_H_INCLUDED__
33

44
#include <irr/core/IReferenceCounted.h>
55
#include <irr/asset/material_compiler/IR.h>

include/irr/ext/MitsubaLoader/SContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ namespace MitsubaLoader
140140
{
141141
SInstanceData(core::matrix3x4SIMD _tform, SContext::bsdf_type _bsdf, const std::string& _id, const CElementEmitter& _emitter) :
142142
tform(_tform), bsdf(_bsdf),
143-
#if defined(_IRR_DEBUG) || defined(_IRR_RELWITHDEBINFO)
143+
#if defined(_NBL_DEBUG) || defined(_NBL_RELWITHDEBINFO)
144144
bsdf_id(_id),
145145
#endif
146146
emitter(_emitter)

include/irr/video/CPropertyPoolHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class CPropertyPoolHandler final : public core::IReferenceCounted, public core::
111111
{
112112
#ifdef _NBL_DEBUG
113113
assert(unusedSets && set.get());
114-
#endif // _IRR_DEBUG
114+
#endif // _NBL_DEBUG
115115
unusedSets->push_back(std::move(set));
116116
}
117117
};

src/irr/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# This file is part of the "Nabla Engine".
33
# For conditions of distribution and use, see copyright notice in nabla.h
44

5-
add_subdirectory(ext)
6-
75
find_package(OpenGL REQUIRED)
86
if(UNIX)
97
find_package(X11 REQUIRED)

src/irr/asset/CMeshManipulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ core::smart_refctd_ptr<ICPUMeshBuffer> IMeshManipulator::createOptimizedMeshBuff
737737

738738
const size_t vertexSize = pipeline->getVertexInputParams().bindings[0].stride;
739739
uint8_t* const v = (uint8_t*)(outbuffer->getAttribBoundBuffer(posId)->buffer->getPointer()); // after prefetch optim. we have guarantee of single vertex buffer so we can do like this
740-
uint8_t* const vCopy = (uint8_t*)_NBL_ALIGNED_MALLOC(bufsz,_IRR_SIMD_ALIGNMENT);
740+
uint8_t* const vCopy = (uint8_t*)_NBL_ALIGNED_MALLOC(bufsz, _NBL_SIMD_ALIGNMENT);
741741
memcpy(vCopy, v, bufsz);
742742

743743
size_t baseVtx = outbuffer->getBaseVertex();

src/irr/asset/CPLYMeshWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ bool CPLYMeshWriter::writeAsset(io::IWriteFile* _file, const SAssetWriteParams&
171171
}
172172
}
173173
else {
174-
indices = _IRR_ALIGNED_MALLOC(idxCnt * (idxtype == asset::EIT_16BIT ? 2u : 4u), _IRR_SIMD_ALIGNMENT);
174+
indices = _NBL_ALIGNED_MALLOC(idxCnt * (idxtype == asset::EIT_16BIT ? 2u : 4u), _NBL_SIMD_ALIGNMENT);
175175
memcpy(indices, meshBuffer->getIndices(), idxCnt * (idxtype == asset::EIT_16BIT ? 2u : 4u));
176176
}
177177

0 commit comments

Comments
 (0)