remove unused 'int format' parameter to 'rlGenTextureMipmaps()'
This commit is contained in:
parent
602583bcdb
commit
d35365203e
|
|
@ -754,7 +754,7 @@ RLAPI void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width,
|
||||||
RLAPI void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats
|
RLAPI void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats
|
||||||
RLAPI const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format
|
RLAPI const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format
|
||||||
RLAPI void rlUnloadTexture(unsigned int id); // Unload texture from GPU memory
|
RLAPI void rlUnloadTexture(unsigned int id); // Unload texture from GPU memory
|
||||||
RLAPI void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps); // Generate mipmap data for selected texture
|
RLAPI void rlGenTextureMipmaps(unsigned int id, int width, int height, int *mipmaps); // Generate mipmap data for selected texture
|
||||||
RLAPI void *rlReadTexturePixels(unsigned int id, int width, int height, int format); // Read texture pixel data
|
RLAPI void *rlReadTexturePixels(unsigned int id, int width, int height, int format); // Read texture pixel data
|
||||||
RLAPI unsigned char *rlReadScreenPixels(int width, int height); // Read screen pixel data (color buffer)
|
RLAPI unsigned char *rlReadScreenPixels(int width, int height); // Read screen pixel data (color buffer)
|
||||||
|
|
||||||
|
|
@ -3577,7 +3577,7 @@ void rlUnloadTexture(unsigned int id)
|
||||||
|
|
||||||
// Generate mipmap data for selected texture
|
// Generate mipmap data for selected texture
|
||||||
// NOTE: Only supports GPU mipmap generation
|
// NOTE: Only supports GPU mipmap generation
|
||||||
void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps)
|
void rlGenTextureMipmaps(unsigned int id, int width, int height, int *mipmaps)
|
||||||
{
|
{
|
||||||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
glBindTexture(GL_TEXTURE_2D, id);
|
glBindTexture(GL_TEXTURE_2D, id);
|
||||||
|
|
|
||||||
|
|
@ -4353,7 +4353,7 @@ void GenTextureMipmaps(Texture2D *texture)
|
||||||
{
|
{
|
||||||
// NOTE: NPOT textures support check inside function
|
// NOTE: NPOT textures support check inside function
|
||||||
// On WebGL (OpenGL ES 2.0) NPOT textures support is limited
|
// On WebGL (OpenGL ES 2.0) NPOT textures support is limited
|
||||||
rlGenTextureMipmaps(texture->id, texture->width, texture->height, texture->format, &texture->mipmaps);
|
rlGenTextureMipmaps(texture->id, texture->width, texture->height, &texture->mipmaps);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set texture scaling filter mode
|
// Set texture scaling filter mode
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user