Преглед на файлове

Remove unnecesary NPOT check

Now PLATFORM checks only used on core and utils modules
pull/521/head
Ray преди 7 години
родител
ревизия
b8bd1d2ea6
променени са 1 файла, в които са добавени 2 реда и са изтрити 9 реда
  1. +2
    -9
      src/textures.c

+ 2
- 9
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

Зареждане…
Отказ
Запис