From 58e4efbba857c8625f60a7d816fc2f7cfd36e124 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 26 Feb 2021 13:40:43 +0100 Subject: [PATCH] Review bug on OpenGL 1.1 --- src/rlgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rlgl.h b/src/rlgl.h index a543c40f8..7d21a9022 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;