3DS - Slight optimisation

This commit is contained in:
Clownacy 2020-10-14 19:47:10 +01:00
parent aafb8dd302
commit 56da7dfe99

View file

@ -358,11 +358,11 @@ RenderBackend_GlyphAtlas* RenderBackend_CreateGlyphAtlas(size_t width, size_t he
{
RenderBackend_GlyphAtlas *atlas = (RenderBackend_GlyphAtlas*)malloc(sizeof(RenderBackend_GlyphAtlas));
width = RoundUpToPowerOfTwo(width);
height = RoundUpToPowerOfTwo(height);
if (atlas != NULL)
{
width = RoundUpToPowerOfTwo(width);
height = RoundUpToPowerOfTwo(height);
atlas->local_texture_buffer = (unsigned char*)linearAlloc(width * height * 4);
if (atlas->local_texture_buffer != NULL)