Changeset 398 for trunk/src/gl
- Timestamp:
- 06/13/15 11:20:22 (10 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_context.cc
r395 r398 731 731 } 732 732 unsigned int buffers[8]; 733 count = glm::min<uint32>( count, 8 );733 count = nv::min<uint32>( count, 8 ); 734 734 for ( uint32 i = 0; i < count; ++i ) 735 735 { -
trunk/src/gl/gl_device.cc
r395 r398 53 53 assert( image->format->BytesPerPixel > 2 ); 54 54 image_format format(image->format->BytesPerPixel == 3 ? RGB : RGBA, UBYTE ); 55 image_data* data = new image_data( format, glm::ivec2( image->w, image->h ), (nv::uint8*)image->pixels );55 image_data* data = new image_data( format, ivec2( image->w, image->h ), (nv::uint8*)image->pixels ); 56 56 return data; 57 57 } … … 71 71 assert( image->format->BytesPerPixel > 2 ); 72 72 image_format format( image->format->BytesPerPixel == 3 ? RGB : RGBA, UBYTE ); 73 image_data* idata = new image_data( format, glm::ivec2( image->w, image->h ), ( nv::uint8* )image->pixels );73 image_data* idata = new image_data( format, ivec2( image->w, image->h ), ( nv::uint8* )image->pixels ); 74 74 return idata; 75 75 }
Note: See TracChangeset
for help on using the changeset viewer.