mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Update assert API to latest bx.
This commit is contained in:
@@ -95,7 +95,7 @@ namespace bgfx
|
||||
#define _BGFX_ASSERT(_condition, _format, ...) \
|
||||
BX_MACRO_BLOCK_BEGIN \
|
||||
if (!BX_IGNORE_C4127(_condition) \
|
||||
&& bx::assertFunction(bx::Location::current(), "ASSERT " #_condition " -> " _format, ##__VA_ARGS__) ) \
|
||||
&& bx::assertFunction(bx::Location::current(), 0, "ASSERT " #_condition " -> " _format, ##__VA_ARGS__) ) \
|
||||
{ \
|
||||
bgfx::fatal(__FILE__, uint16_t(__LINE__), bgfx::Fatal::DebugCheck, _format, ##__VA_ARGS__); \
|
||||
} \
|
||||
|
||||
@@ -5313,7 +5313,7 @@ namespace bgfx { namespace gl
|
||||
}
|
||||
|
||||
UniformType::Enum type = convertGlType(gltype);
|
||||
m_constantBuffer->writeUniformHandle(type, 0, info->m_handle, uint16_t(num) );
|
||||
m_constantBuffer->writeUniformHandle(bx::narrowCast<uint8_t>(type), 0, info->m_handle, uint16_t(num) );
|
||||
m_constantBuffer->write(loc);
|
||||
BX_TRACE("store %s %d", name, info->m_handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user