1
1
forked from 0ad/0ad

Adds std namespace to shared_ptr usages in lib/tex.

This was SVN commit r25530.
This commit is contained in:
Vladislav Belov 2021-05-22 19:34:39 +00:00
parent 5656c4117d
commit 10cf87f3d1
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ static Status s3tc_decompress(Tex* t)
const size_t dxt = t->m_Flags & TEX_DXT;
const size_t out_bpp = (dxt != 1)? 32 : 24;
const size_t out_size = t->img_size() * out_bpp / t->m_Bpp;
shared_ptr<u8> decompressedData;
std::shared_ptr<u8> decompressedData;
AllocateAligned(decompressedData, out_size, g_PageSize);
const size_t s3tc_block_size = (dxt == 3 || dxt == 5)? 16 : 8;

View File

@ -181,7 +181,7 @@ static Status png_decode_impl(MemoryStream* stream, png_structp png_ptr, png_inf
flags |= TEX_GREY;
const size_t img_size = pitch * h;
shared_ptr<u8> data;
std::shared_ptr<u8> data;
AllocateAligned(data, img_size, g_PageSize);
std::vector<RowPtr> rows = tex_codec_alloc_rows(data.get(), h, pitch, TEX_TOP_DOWN, 0);