- Timestamp:
- 02/26/10 09:55:50 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/png/ReaderWriterPNG.cpp
r10963 r11121 230 230 png_set_palette_to_rgb(png); 231 231 if (color == PNG_COLOR_TYPE_GRAY && depth < 8) 232 { 233 #if PNG_LIBPNG_VER >= 10209 232 234 png_set_expand_gray_1_2_4_to_8(png); 235 #else 236 // use older now deprecated but identical call 237 png_set_gray_1_2_4_to_8(png); 238 #endif 239 } 233 240 if (png_get_valid(png, info, PNG_INFO_tRNS)) 234 241 png_set_tRNS_to_alpha(png);
