summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2021-08-25 23:41:33 +0200
committerRay <[email protected]>2021-08-25 23:41:33 +0200
commit14e443afbac0c8742e11fb97edc6eea6f0865bc5 (patch)
tree7c5189ca621873339e74680ae481d44bf9285c43
parent7749a2805c0f28762c206da0b7c954cbe9e318e2 (diff)
downloadraylib-14e443afbac0c8742e11fb97edc6eea6f0865bc5.tar.gz
raylib-14e443afbac0c8742e11fb97edc6eea6f0865bc5.zip
REVIEWED: OpenGL 1.1 compilation issue
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 7d9b8d14..ce99c40e 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2956,9 +2956,9 @@ void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int
*mipmaps = mipmapCount + 1;
RL_FREE(texData); // Once mipmaps have been generated and data has been uploaded to GPU VRAM, we can discard RAM data
- TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Mipmaps generated manually on CPU side, total: %i", texture->id, texture->mipmaps);
+ TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Mipmaps generated manually on CPU side, total: %i", id, *mipmaps);
}
- else TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Failed to generate mipmaps for provided texture format", texture->id);
+ else TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Failed to generate mipmaps for provided texture format", id);
}
#endif
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)