Skip to content

Commit

Permalink
[rlgl] Fixed return type of GetCompressedFormatName (#3529)
Browse files Browse the repository at this point in the history
The return type of `GetCompressedFormatName` has been corrected from `char *` to `const char *`
  • Loading branch information
Bigfoot71 authored Nov 11, 2023
1 parent 1b88f2e commit 9099077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rlgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ static PFNGLVERTEXATTRIBDIVISOREXTPROC glVertexAttribDivisor = NULL;
static void rlLoadShaderDefault(void); // Load default shader
static void rlUnloadShaderDefault(void); // Unload default shader
#if defined(RLGL_SHOW_GL_DETAILS_INFO)
static char *rlGetCompressedFormatName(int format); // Get compressed format official GL identifier name
static const char *rlGetCompressedFormatName(int format); // Get compressed format official GL identifier name
#endif // RLGL_SHOW_GL_DETAILS_INFO
#endif // GRAPHICS_API_OPENGL_33 || GRAPHICS_API_OPENGL_ES2

Expand Down Expand Up @@ -4690,7 +4690,7 @@ static void rlUnloadShaderDefault(void)

#if defined(RLGL_SHOW_GL_DETAILS_INFO)
// Get compressed format official GL identifier name
static char *rlGetCompressedFormatName(int format)
static const char *rlGetCompressedFormatName(int format)
{
switch (format)
{
Expand Down

0 comments on commit 9099077

Please sign in to comment.