This commit is contained in:
Branimir Karadžić
2018-05-24 18:03:31 -07:00
parent 2f67615460
commit e9869fbeed
5 changed files with 32 additions and 22 deletions

View File

@@ -5151,7 +5151,9 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
if (convert)
{
imageDecodeToRgba8(temp
imageDecodeToRgba8(
g_allocator
, temp
, mip.m_data
, mip.m_width
, mip.m_height
@@ -5320,7 +5322,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
if (convert)
{
bimg::imageDecodeToRgba8(temp, data, width, height, srcpitch, bimg::TextureFormat::Enum(m_requestedFormat) );
bimg::imageDecodeToRgba8(g_allocator, temp, data, width, height, srcpitch, bimg::TextureFormat::Enum(m_requestedFormat) );
data = temp;
srcpitch = rectpitch;
}