aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay San <raysan5@gmail.com>2015-10-26 11:50:28 +0100
committerRay San <raysan5@gmail.com>2015-10-26 11:50:28 +0100
commitfb4105cf8a6a26b0f00da1c71ad8c56c2aefd875 (patch)
tree6222ca568cd67bceba20efc473430d50a04eddfe /src
parentd1f099374c1d35b82b2a5d9d5ccf4b133aca25a2 (diff)
downloadraylib-fb4105cf8a6a26b0f00da1c71ad8c56c2aefd875.tar.gz
raylib-fb4105cf8a6a26b0f00da1c71ad8c56c2aefd875.zip
Corrected bug on web
Diffstat (limited to 'src')
-rw-r--r--src/textures.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index 66d2afc5..29eed874 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");
}