Initial checkin of v1.04 - KTX file format support, basic ETC1 compression/decompression, Linux makefile with proper gcc options, lots of high-level improvements to get crnlib into a state where I can more easily add additional formats.
This commit is contained in:
@@ -72,6 +72,11 @@ namespace crnlib
|
||||
p_new = ::malloc(size);
|
||||
CRNLIB_ASSERT( (reinterpret_cast<ptr_bits_t>(p_new) & (CRNLIB_MIN_ALLOC_ALIGNMENT - 1)) == 0 );
|
||||
|
||||
if (!p_new)
|
||||
{
|
||||
printf("WARNING: ::malloc() of size %u failed!\n", (uint)size);
|
||||
}
|
||||
|
||||
if (pActual_size)
|
||||
*pActual_size = p_new ? ::_msize(p_new) : 0;
|
||||
}
|
||||
@@ -106,6 +111,10 @@ namespace crnlib
|
||||
CRNLIB_ASSERT( (reinterpret_cast<ptr_bits_t>(p_new) & (CRNLIB_MIN_ALLOC_ALIGNMENT - 1)) == 0 );
|
||||
p_final_block = p_new;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("WARNING: ::realloc() of size %u failed!\n", (uint)size);
|
||||
}
|
||||
}
|
||||
|
||||
if (pActual_size)
|
||||
|
||||
Reference in New Issue
Block a user