Changeset 471 for trunk/src/gl/gl_device.cc
- Timestamp:
- 09/21/15 19:13:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r466 r471 76 76 } 77 77 // TODO: BGR vs RGB, single channel 78 assert( image->format->BytesPerPixel > 2);78 NV_ASSERT( image->format->BytesPerPixel > 2, "bytes per pixel > 2!" ); 79 79 image_format format( image->format->BytesPerPixel == 3 ? RGB : RGBA, UBYTE ); 80 80 image_data* idata = new image_data( format, ivec2( image->w, image->h ), static_cast<nv::uint8*>( image->pixels ) );
Note: See TracChangeset
for help on using the changeset viewer.