Skip to content

Commit

Permalink
Fix r_glsl_dumpshader segfault
Browse files Browse the repository at this point in the history
In 05bc755 only i should have been
changed to unsigned to prevent the warning.

Fixes DarkPlacesEngine/DarkPlaces#145

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
  • Loading branch information
hemebond authored and bones-was-here committed Apr 1, 2024
1 parent 89ab2a5 commit 678c43a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gl_rmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 678c43a

Please sign in to comment.