mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Remove unnecesary NPOT check
Now PLATFORM checks only used on core and utils modules
This commit is contained in:
@ -1925,16 +1925,9 @@ Image GenImageCellular(int width, int height, int tileSize)
|
|||||||
// Generate GPU mipmaps for a texture
|
// Generate GPU mipmaps for a texture
|
||||||
void GenTextureMipmaps(Texture2D *texture)
|
void GenTextureMipmaps(Texture2D *texture)
|
||||||
{
|
{
|
||||||
#if defined(PLATFORM_WEB)
|
// NOTE: NPOT textures support check inside function
|
||||||
// Check if texture is POT
|
// On WebGL (OpenGL ES 2.0) NPOT textures support is limited
|
||||||
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
|
|
||||||
rlGenerateMipmaps(texture);
|
rlGenerateMipmaps(texture);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set texture scaling filter mode
|
// Set texture scaling filter mode
|
||||||
|
|||||||
Reference in New Issue
Block a user