Browse Source

fix png compile error

rdb 12 years ago
parent
commit
86509ab684
1 changed files with 1 additions and 2 deletions
  1. 1 2
      direct/src/plugin/p3dSplashWindow.cxx

+ 1 - 2
direct/src/plugin/p3dSplashWindow.cxx

@@ -385,8 +385,7 @@ bool P3DSplashWindow::
 read_image_data_png(ImageData &image, string &data,
                     FILE *fp, const string &image_filename) {
   png_structp png;
-  png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL,
-                                png_error, png_warning);
+  png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
   if (png == NULL) {
     return false;
   }