mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup. (#3488)
This commit is contained in:
committed by
GitHub
parent
9e8ecf4af4
commit
0906e38406
@@ -221,6 +221,7 @@ int _main_(int _argc, char** _argv)
|
||||
}
|
||||
|
||||
bimg::imageWriteTga(&writer, kWidth, kHeight, kWidth*4, data, false, false, &err);
|
||||
bx::close(&writer);
|
||||
|
||||
bx::free(&allocator, data);
|
||||
}
|
||||
|
||||
@@ -2184,7 +2184,7 @@ namespace bgfx
|
||||
constexpr uint32_t kMaxOffset = ( (kOffsetMask>>kOffsetShift) + 1)<<4;
|
||||
|
||||
BX_ASSERT(true
|
||||
&& m_size < kMaxSize
|
||||
&& uint32_t(m_size) < kMaxSize
|
||||
&& m_offset < kMaxOffset
|
||||
, "UniformCacheKey couldn't fit size or offest (size %d max %d, offset %d max %d)!"
|
||||
, m_size
|
||||
|
||||
Reference in New Issue
Block a user