diff options
| author | raysan5 <[email protected]> | 2017-12-28 19:27:02 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-12-28 19:27:02 +0100 |
| commit | e7cf03b1e4c1aa7872bda7b35a7d064815332759 (patch) | |
| tree | cb5863339779ca5a6a4e746b1bc0c4a810be85ad /src/textures.c | |
| parent | 7965f983baa91afa7ac8019574a14e4814c91cf2 (diff) | |
| download | raylib-e7cf03b1e4c1aa7872bda7b35a7d064815332759.tar.gz raylib-e7cf03b1e4c1aa7872bda7b35a7d064815332759.zip | |
Minor tweaks
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c index 34f2c323..fd2fae0d 100644 --- a/src/textures.c +++ b/src/textures.c @@ -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))); |
