diff options
| author | Ray <[email protected]> | 2022-06-21 19:53:28 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-06-21 19:53:28 +0200 |
| commit | 68c7cc0cc44c93e82cd45b17a5d6e1aa7f23aa54 (patch) | |
| tree | 9f0d19a17c3043d4b4131f189c07ba09b4420157 /src | |
| parent | c1b01c0d5d2f2bb5108df910b2376d45314e7335 (diff) | |
| download | raylib-68c7cc0cc44c93e82cd45b17a5d6e1aa7f23aa54.tar.gz raylib-68c7cc0cc44c93e82cd45b17a5d6e1aa7f23aa54.zip | |
minor tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
