mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
minor tweak
This commit is contained in:
@@ -3118,8 +3118,8 @@ void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int
|
||||
//glHint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE); // Hint for mipmaps generation algorithm: GL_FASTEST, GL_NICEST, GL_DONT_CARE
|
||||
glGenerateMipmap(GL_TEXTURE_2D); // Generate mipmaps automatically
|
||||
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#define MIN(a,b) (((a)<(b))? (a):(b))
|
||||
#define MAX(a,b) (((a)>(b))? (a):(b))
|
||||
|
||||
*mipmaps = 1 + (int)floor(log(MAX(width, height))/log(2));
|
||||
TRACELOG(RL_LOG_INFO, "TEXTURE: [ID %i] Mipmaps generated automatically, total: %i", id, *mipmaps);
|
||||
|
Reference in New Issue
Block a user