summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLe Juez Victor <[email protected]>2023-11-12 00:09:00 +0100
committerGitHub <[email protected]>2023-11-12 00:09:00 +0100
commit909907707597061cf6076f072f2a199662c51593 (patch)
treee5760432d3a48e864075520f810d64074026859c
parent1b88f2ec03e55cda5cc5ace0c9a4b33aaf039b48 (diff)
downloadraylib-909907707597061cf6076f072f2a199662c51593.tar.gz
raylib-909907707597061cf6076f072f2a199662c51593.zip
[rlgl] Fixed return type of `GetCompressedFormatName` (#3529)
The return type of `GetCompressedFormatName` has been corrected from `char *` to `const char *`
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 8e5db100..6cf9c7e9 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -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
@@ -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)
{