Corrected bug on web
This commit is contained in:
parent
d1f099374c
commit
fb4105cf8a
1 changed files with 3 additions and 3 deletions
|
@ -1160,11 +1160,11 @@ void ImageColorBrightness(Image *image, int brightness)
|
||||||
void GenTextureMipmaps(Texture2D texture)
|
void GenTextureMipmaps(Texture2D texture)
|
||||||
{
|
{
|
||||||
#if PLATFORM_WEB
|
#if PLATFORM_WEB
|
||||||
int potWidth = GetNextPOT(image->width);
|
int potWidth = GetNextPOT(texture.width);
|
||||||
int potHeight = GetNextPOT(image->height);
|
int potHeight = GetNextPOT(texture.height);
|
||||||
|
|
||||||
// Check if texture is POT
|
// 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");
|
TraceLog(WARNING, "Limited NPOT support, no mipmaps available for NPOT textures");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue