This commit is contained in:
Branimir Karadžić
2025-11-11 12:11:38 -08:00
committed by GitHub
parent 9e8ecf4af4
commit 0906e38406
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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