Skip to content

Commit 6d21bc9

Browse files
committed
[rlgl] Remove unused 'format' parameter in rlGenTextureMipmaps
1 parent ddd86a3 commit 6d21bc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rlgl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ RLAPI void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width,
757757
RLAPI void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats
758758
RLAPI const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format
759759
RLAPI void rlUnloadTexture(unsigned int id); // Unload texture from GPU memory
760-
RLAPI void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps); // Generate mipmap data for selected texture
760+
RLAPI void rlGenTextureMipmaps(unsigned int id, int width, int height, int *mipmaps); // Generate mipmap data for selected texture
761761
RLAPI void *rlReadTexturePixels(unsigned int id, int width, int height, int format); // Read texture pixel data
762762
RLAPI unsigned char *rlReadScreenPixels(int width, int height); // Read screen pixel data (color buffer)
763763

@@ -3569,7 +3569,7 @@ void rlUnloadTexture(unsigned int id)
35693569

35703570
// Generate mipmap data for selected texture
35713571
// NOTE: Only supports GPU mipmap generation
3572-
void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps)
3572+
void rlGenTextureMipmaps(unsigned int id, int width, int height, int *mipmaps)
35733573
{
35743574
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
35753575
glBindTexture(GL_TEXTURE_2D, id);

src/rtextures.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4352,7 +4352,7 @@ void GenTextureMipmaps(Texture2D *texture)
43524352
{
43534353
// NOTE: NPOT textures support check inside function
43544354
// On WebGL (OpenGL ES 2.0) NPOT textures support is limited
4355-
rlGenTextureMipmaps(texture->id, texture->width, texture->height, texture->format, &texture->mipmaps);
4355+
rlGenTextureMipmaps(texture->id, texture->width, texture->height, &texture->mipmaps);
43564356
}
43574357

43584358
// Set texture scaling filter mode

0 commit comments

Comments
 (0)