SCM Repository
[diderot] / examples / util / load-png.c |
Diff of /examples/util/load-png.c
Parent Directory
|
Revision Log
|
Patch
revision 1919, Thu Jun 7 22:43:16 2012 UTC | revision 1920, Fri Jun 8 12:11:49 2012 UTC | |
---|---|---|
# | Line 134 | Line 134 |
134 | // figure out the OpenGL image type | // figure out the OpenGL image type |
135 | GLenum type; | GLenum type; |
136 | if (bitDepth <= 8) type = GL_UNSIGNED_BYTE; | if (bitDepth <= 8) type = GL_UNSIGNED_BYTE; |
137 | else if (bitDepth == 16) type = GL_UNSIGNED_BYTE; | else if (bitDepth == 16) type = GL_UNSIGNED_SHORT; |
138 | else { | else { |
139 | fprintf(stderr, "unsupported bit depth\n"); | fprintf(stderr, "unsupported bit depth\n"); |
140 | png_destroy_read_struct (&pngPtr, &infoPtr, (png_infopp)0); | png_destroy_read_struct (&pngPtr, &infoPtr, (png_infopp)0); |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |