3DS - Slight optimisation
This commit is contained in:
parent
aafb8dd302
commit
56da7dfe99
1 changed files with 3 additions and 3 deletions
|
@ -358,11 +358,11 @@ RenderBackend_GlyphAtlas* RenderBackend_CreateGlyphAtlas(size_t width, size_t he
|
||||||
{
|
{
|
||||||
RenderBackend_GlyphAtlas *atlas = (RenderBackend_GlyphAtlas*)malloc(sizeof(RenderBackend_GlyphAtlas));
|
RenderBackend_GlyphAtlas *atlas = (RenderBackend_GlyphAtlas*)malloc(sizeof(RenderBackend_GlyphAtlas));
|
||||||
|
|
||||||
|
if (atlas != NULL)
|
||||||
|
{
|
||||||
width = RoundUpToPowerOfTwo(width);
|
width = RoundUpToPowerOfTwo(width);
|
||||||
height = RoundUpToPowerOfTwo(height);
|
height = RoundUpToPowerOfTwo(height);
|
||||||
|
|
||||||
if (atlas != NULL)
|
|
||||||
{
|
|
||||||
atlas->local_texture_buffer = (unsigned char*)linearAlloc(width * height * 4);
|
atlas->local_texture_buffer = (unsigned char*)linearAlloc(width * height * 4);
|
||||||
|
|
||||||
if (atlas->local_texture_buffer != NULL)
|
if (atlas->local_texture_buffer != NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue