mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-22 07:09:18 -05:00
Corrected bug on web
This commit is contained in:
@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user