Changeset 398 for trunk/src/gl


Ignore:
Timestamp:
06/13/15 11:20:22 (10 years ago)
Author:
epyon
Message:
  • cleanup of glm usage
Location:
trunk/src/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_context.cc

    r395 r398  
    731731        }
    732732        unsigned int buffers[8];
    733         count = glm::min<uint32>( count, 8 );
     733        count = nv::min<uint32>( count, 8 );
    734734        for ( uint32 i = 0; i < count; ++i )
    735735        {
  • trunk/src/gl/gl_device.cc

    r395 r398  
    5353        assert( image->format->BytesPerPixel > 2 );
    5454        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 );
    5656        return data;
    5757}
     
    7171        assert( image->format->BytesPerPixel > 2 );
    7272        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 );
    7474        return idata;
    7575}
Note: See TracChangeset for help on using the changeset viewer.