Explorar o código

Review bug on OpenGL 1.1

Ray %!s(int64=4) %!d(string=hai) anos
pai
achega
58e4efbba8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/rlgl.h

+ 1 - 1
src/rlgl.h

@@ -2429,7 +2429,7 @@ void rlGenerateMipmaps(Texture2D *texture)
 
             // NOTE: Texture data size is reallocated to fit mipmaps data
             // NOTE: CPU mipmap generation only supports RGBA 32bit data
-            int mipmapCount = GenerateMipmaps(data, texture->width, texture->height);
+            int mipmapCount = GenerateMipmaps(texData, texture->width, texture->height);
 
             int size = texture->width*texture->height*4;
             int offset = size;