mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Replace _IRR_DEBUG_BREAK_IF
with assertions
This commit is contained in:
committed by
Lars Müller
parent
2f464843cb
commit
5f1ff453c9
@@ -11,6 +11,7 @@
|
||||
#include "IIndexBuffer.h"
|
||||
#include "EHardwareBufferFlags.h"
|
||||
#include "EPrimitiveTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace irr
|
||||
{
|
||||
@@ -121,7 +122,7 @@ public:
|
||||
/** \return Pointer to indices array. */
|
||||
inline const u16 *getIndices() const
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(getIndexBuffer()->getType() != video::EIT_16BIT);
|
||||
assert(getIndexBuffer()->getType() == video::EIT_16BIT);
|
||||
return static_cast<const u16*>(getIndexBuffer()->getData());
|
||||
}
|
||||
|
||||
@@ -129,7 +130,7 @@ public:
|
||||
/** \return Pointer to indices array. */
|
||||
inline u16 *getIndices()
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(getIndexBuffer()->getType() != video::EIT_16BIT);
|
||||
assert(getIndexBuffer()->getType() == video::EIT_16BIT);
|
||||
return static_cast<u16*>(getIndexBuffer()->getData());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user