From fb4105cf8a6a26b0f00da1c71ad8c56c2aefd875 Mon Sep 17 00:00:00 2001 From: Ray San Date: Mon, 26 Oct 2015 11:50:28 +0100 Subject: [PATCH] Corrected bug on web --- src/textures.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/textures.c b/src/textures.c index 66d2afc58..29eed874f 100644 --- a/src/textures.c +++ b/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"); }