Fix for older versions of png
This commit is contained in:
parent
0e17286b40
commit
4af2e7bf6a
1 changed files with 1 additions and 2 deletions
|
@ -239,8 +239,7 @@ global void SaveScreenshotPNG(const char* name)
|
|||
return;
|
||||
}
|
||||
|
||||
if (setjmp(png_jmpbuf(png_ptr)))
|
||||
{
|
||||
if (setjmp(png_ptr->jmpbuf)) {
|
||||
/* If we get here, we had a problem reading the file */
|
||||
fclose(fp);
|
||||
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue