Skip to content
Browse files

BUILD: fix building with libpng-1.6

  • Loading branch information...
1 parent 3cece96 commit 6153fdaf34d9d3eec5fc1541b0373db6ef0eac25 hasufell committed with Bertram25
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/engine/video/image.cpp
View
2 src/engine/video/image.cpp
@@ -694,7 +694,7 @@ void ImageDescriptor::_GetPngImageInfo(const std::string &filename, uint32 &rows
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND, NULL);
// grab the relevant data...
-#if PNG_LIBPNG_VER_SONUM == 15
+#if PNG_LIBPNG_VER_SONUM >= 15
cols = png_get_image_width(png_ptr, info_ptr);
rows = png_get_image_height(png_ptr, info_ptr);
bpp = png_get_bit_depth(png_ptr, info_ptr) * 8;

0 comments on commit 6153fda

Please sign in to comment.
Something went wrong with that request. Please try again.