Skip to content

Commit 9099077

Browse files
authored
[rlgl] Fixed return type of GetCompressedFormatName (#3529)
The return type of `GetCompressedFormatName` has been corrected from `char *` to `const char *`
1 parent 1b88f2e commit 9099077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rlgl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ static PFNGLVERTEXATTRIBDIVISOREXTPROC glVertexAttribDivisor = NULL;
10651065
static void rlLoadShaderDefault(void); // Load default shader
10661066
static void rlUnloadShaderDefault(void); // Unload default shader
10671067
#if defined(RLGL_SHOW_GL_DETAILS_INFO)
1068-
static char *rlGetCompressedFormatName(int format); // Get compressed format official GL identifier name
1068+
static const char *rlGetCompressedFormatName(int format); // Get compressed format official GL identifier name
10691069
#endif // RLGL_SHOW_GL_DETAILS_INFO
10701070
#endif // GRAPHICS_API_OPENGL_33 || GRAPHICS_API_OPENGL_ES2
10711071

@@ -4690,7 +4690,7 @@ static void rlUnloadShaderDefault(void)
46904690

46914691
#if defined(RLGL_SHOW_GL_DETAILS_INFO)
46924692
// Get compressed format official GL identifier name
4693-
static char *rlGetCompressedFormatName(int format)
4693+
static const char *rlGetCompressedFormatName(int format)
46944694
{
46954695
switch (format)
46964696
{

0 commit comments

Comments
 (0)