backend update from Raze
* moving large allocations off the stack * use proper printf formatters for size_t and ptrdiff_t. * adding some missing 'noexcept'.
This commit is contained in:
parent
df9b2cd9bf
commit
83aa9388ca
29 changed files with 117 additions and 109 deletions
|
|
@ -510,7 +510,8 @@ bool M_ReadIDAT (FileReader &file, uint8_t *buffer, int width, int height, int p
|
|||
{
|
||||
i += bytesPerRowOut * 2;
|
||||
}
|
||||
inputLine = (Byte *)alloca (i);
|
||||
TArray<Byte> inputArray(i, true);
|
||||
inputLine = inputArray.data();
|
||||
adam7buff[0] = inputLine + 4 + bytesPerRowOut;
|
||||
adam7buff[1] = adam7buff[0] + bytesPerRowOut;
|
||||
adam7buff[2] = adam7buff[1] + bytesPerRowOut;
|
||||
|
|
@ -925,7 +926,8 @@ bool M_SaveBitmap(const uint8_t *from, ESSType color_type, int width, int height
|
|||
temprow[i] = &temprow_storage[temprow_size * i];
|
||||
}
|
||||
|
||||
Byte buffer[PNG_WRITE_SIZE];
|
||||
TArray<Byte> array(PNG_WRITE_SIZE, true);
|
||||
auto buffer = array.data();
|
||||
z_stream stream;
|
||||
int err;
|
||||
int y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue