Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /examples/util/load-png.c
ViewVC logotype

Diff of /examples/util/load-png.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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);

Legend:
Removed from v.1919  
changed lines
  Added in v.1920

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0