Fix clobbering error in hw_md2.c by adding "volatile" to png_FILE.

(Apparently Kart made this exact fix 2 years ago and it was never backported?)
This commit is contained in:
Monster Iestyn 2021-03-21 19:49:32 +00:00
parent ce0190a21f
commit b882aea2e4
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static GLTextureFormat_t PNG_Load(const char *filename, int *w, int *h, GLPatch_
jmp_buf jmpbuf;
#endif
#endif
png_FILE_p png_FILE;
volatile png_FILE_p png_FILE;
//Filename checking fixed ~Monster Iestyn and Golden
char *pngfilename = va("%s"PATHSEP"models"PATHSEP"%s", srb2home, filename);