Skip to content
Permalink
Browse files

renderercommon: fix issue causing game to crash during connection to …

…server. Cause of this mess was "setjmp checksum mismatch".
  • Loading branch information...
rafal1137 committed May 29, 2019
1 parent c921652 commit aa1416f986adeb6c755ae9e1fa08df4397941113
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/renderercommon/tr_image_jpg.c
@@ -154,6 +154,13 @@ void R_LoadJPG(const char *filename, unsigned char **pic, int *width, int *heigh
// There was an error in jpeg decompression. Abort.
return;
}
#else
/* deep error handling */
if (setjmp(jerr.jmpbuf))
{
// There was an error in jpeg decompression. Abort.
return;
}

/* Now we can initialize the JPEG decompression object. */
jpeg_create_decompress(&cinfo);

0 comments on commit aa1416f

Please sign in to comment.
You can’t perform that action at this time.