Minor tweaks

This commit is contained in:
raysan5
2017-12-28 19:27:02 +01:00
parent 7965f983ba
commit e7cf03b1e4
3 changed files with 7 additions and 9 deletions

View File

@ -1681,7 +1681,7 @@ Image GenImageCellular(int width, int height, int tileSize)
// Generate GPU mipmaps for a texture
void GenTextureMipmaps(Texture2D *texture)
{
#if PLATFORM_WEB
#if defined(PLATFORM_WEB)
// Calculate next power-of-two values
int potWidth = (int)powf(2, ceilf(logf((float)texture->width)/logf(2)));
int potHeight = (int)powf(2, ceilf(logf((float)texture->height)/logf(2)));