mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -1505,7 +1505,7 @@ struct DebugDrawEncoderImpl
|
||||
}
|
||||
else
|
||||
{
|
||||
BX_STATIC_ASSERT(sizeof(DdVertex) == sizeof(bx::Vec3), "");
|
||||
static_assert(sizeof(DdVertex) == sizeof(bx::Vec3), "");
|
||||
|
||||
uint64_t old = attrib.m_state;
|
||||
attrib.m_state &= ~BGFX_STATE_CULL_MASK;
|
||||
@@ -2241,7 +2241,7 @@ struct DebugDrawEncoderImpl
|
||||
static const uint32_t kCacheSize = 1024;
|
||||
static const uint32_t kStackSize = 16;
|
||||
static const uint32_t kCacheQuadSize = 1024;
|
||||
BX_STATIC_ASSERT(kCacheSize >= 3, "Cache must be at least 3 elements.");
|
||||
static_assert(kCacheSize >= 3, "Cache must be at least 3 elements.");
|
||||
|
||||
DebugVertex m_cache[kCacheSize+1];
|
||||
DebugUvVertex m_cacheQuad[kCacheQuadSize];
|
||||
@@ -2281,7 +2281,7 @@ struct DebugDrawEncoderImpl
|
||||
};
|
||||
|
||||
static DebugDrawEncoderImpl s_dde;
|
||||
BX_STATIC_ASSERT(sizeof(DebugDrawEncoderImpl) <= sizeof(DebugDrawEncoder), "Size must match");
|
||||
static_assert(sizeof(DebugDrawEncoderImpl) <= sizeof(DebugDrawEncoder), "Size must match");
|
||||
|
||||
void ddInit(bx::AllocatorI* _allocator)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user