summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index a543c40f..7d21a902 100644
--- a/src/rlgl.h
+++ b/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;