mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Get output buffer size in W_ReadShader correctly
This commit is contained in:
parent
4c65960095
commit
ced6293d37
1 changed files with 1 additions and 1 deletions
|
|
@ -2581,7 +2581,7 @@ boolean W_ReadShader(const char *filename, size_t *size, void *dest)
|
|||
int zErr; // Helper var.
|
||||
z_stream strm;
|
||||
unsigned long rawSize = lump->disksize;
|
||||
unsigned long decSize = (unsigned long)size;
|
||||
unsigned long decSize = (unsigned long)*size;
|
||||
|
||||
rawData = static_cast<UINT8*>(Z_Malloc(rawSize, PU_STATIC, NULL));
|
||||
decData = static_cast<UINT8*>(dest);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue