ソースを参照

Corrected bug on web

pull/66/head
Ray San 9年前
コミット
fb4105cf8a
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/textures.c

+ 3
- 3
src/textures.c ファイルの表示

@ -1160,11 +1160,11 @@ void ImageColorBrightness(Image *image, int brightness)
void GenTextureMipmaps(Texture2D texture)
{
#if PLATFORM_WEB
int potWidth = GetNextPOT(image->width);
int potHeight = GetNextPOT(image->height);
int potWidth = GetNextPOT(texture.width);
int potHeight = GetNextPOT(texture.height);
// Check if texture is POT
if ((potWidth != image->width) || (potHeight != image->height))
if ((potWidth != texture.width) || (potHeight != texture.height))
{
TraceLog(WARNING, "Limited NPOT support, no mipmaps available for NPOT textures");
}

読み込み中…
キャンセル
保存