aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-04-05 19:22:45 +0200
committerRay <raysan5@gmail.com>2018-04-05 19:22:45 +0200
commitb8bd1d2ea68adbf85b05a273df42eab42352a7c2 (patch)
tree57c819af070c300062d0d85cf63e79cac86386e0 /src
parent005f2ffb7502668fe5820d5fe041dea7daaac48c (diff)
downloadraylib-b8bd1d2ea68adbf85b05a273df42eab42352a7c2.tar.gz
raylib-b8bd1d2ea68adbf85b05a273df42eab42352a7c2.zip
Remove unnecesary NPOT check
Now PLATFORM checks only used on core and utils modules
Diffstat (limited to 'src')
-rw-r--r--src/textures.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/textures.c b/src/textures.c
index 11258150..8a562887 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1925,16 +1925,9 @@ Image GenImageCellular(int width, int height, int tileSize)
// Generate GPU mipmaps for a texture
void GenTextureMipmaps(Texture2D *texture)
{
-#if defined(PLATFORM_WEB)
- // Check if texture is POT
- if (((texture->width & (texture->width - 1)) != 0) || ((texture->height & (texture->height - 1)) != 0))
- {
- TraceLog(LOG_WARNING, "Limited NPOT support, no mipmaps available for NPOT textures");
- }
- else rlGenerateMipmaps(texture);
-#else
+ // NOTE: NPOT textures support check inside function
+ // On WebGL (OpenGL ES 2.0) NPOT textures support is limited
rlGenerateMipmaps(texture);
-#endif
}
// Set texture scaling filter mode