mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Remove unneeded memcpy in HWR_CacheTextureAsFlat
This commit is contained in:
parent
5e8da61e5e
commit
baad413cc3
1 changed files with 1 additions and 3 deletions
|
|
@ -884,11 +884,9 @@ static void HWR_CacheTextureAsFlat(GLMipmap_t *grMipmap, INT32 texturenum, boole
|
|||
|
||||
flat = Z_Malloc(size, PU_HWRCACHE, &grMipmap->data);
|
||||
converted = (UINT8 *)Picture_TextureToFlat(texturenum);
|
||||
M_Memcpy(flat, converted, size);
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
{
|
||||
flat[i] = colormap[flat[i]];
|
||||
flat[i] = colormap[converted[i]];
|
||||
}
|
||||
Z_Free(converted);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue