--- examples/util/load-png.c 2012/05/20 15:07:04 1884 +++ examples/util/load-png.c 2012/06/08 12:11:49 1920 @@ -134,7 +134,7 @@ // figure out the OpenGL image type GLenum type; if (bitDepth <= 8) type = GL_UNSIGNED_BYTE; - else if (bitDepth == 16) type = GL_UNSIGNED_BYTE; + else if (bitDepth == 16) type = GL_UNSIGNED_SHORT; else { fprintf(stderr, "unsupported bit depth\n"); png_destroy_read_struct (&pngPtr, &infoPtr, (png_infopp)0);
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: tf(stderr, "unsupported bit depth\n"); png_destroy_read_struct (&pngPtr, &infoPtr, (png_infopp)0);