From: James O'Neill Date: Mon, 18 Mar 2024 12:06:22 +0000 (+0900) Subject: Fix r_glsl_dumpshader segfault X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=678c43ade34a5d84a4a4496a8731dd3b6cc5c5e8;p=xonotic%2Fdarkplaces.git Fix r_glsl_dumpshader segfault 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 --- diff --git a/gl_rmain.c b/gl_rmain.c index 0226686d..a20f4c9b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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;