summaryrefslogtreecommitdiff
path: root/testing/glhack/glhack-libpng15.patch
blob: d8e644d1c09bb32a38c250b71abd4fd71a4e334b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- win/gl/gl_image.c.old	2012-01-19 04:01:26.000000000 -0500
+++ win/gl/gl_image.c	2012-01-19 04:03:04.000000000 -0500
@@ -486,7 +486,7 @@
   /* set error handling since we are using the setjmp/longjmp method
    * (this is the normal method of doing things with libpng).
    */
-  if (setjmp(png_ptr->jmpbuf))
+  if (setjmp(png_jmpbuf(png_ptr)))
   {
     sdlgl_warning("Problem within LibPNG (unknown)\n");
     goto failed;