]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix r_glsl_dumpshader segfault
authorJames O'Neill <hemebond@gmail.com>
Mon, 18 Mar 2024 12:06:22 +0000 (21:06 +0900)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 1 Apr 2024 10:50:04 +0000 (20:50 +1000)
In 05bc75558afbdf80289fddf9a330dd7382a07d0d only i should have been
changed to unsigned to prevent the warning.

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/145

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
gl_rmain.c

index 0226686d0de1c1d6b10bd3200ab01a5597caf6ce..a20f4c9bba793a4d3c08e90e97efafbf58ef0bfb 100644 (file)
@@ -1418,7 +1418,8 @@ void R_GLSL_Restart_f(cmd_state_t *cmd)
 
 static void R_GLSL_DumpShader_f(cmd_state_t *cmd)
 {
-       unsigned i, language, mode, dupe;
+       unsigned i;
+       int language, mode, dupe;
        char *text;
        shadermodeinfo_t *modeinfo;
        qfile_t *file;