Changeset 517 for trunk


Ignore:
Timestamp:
08/18/16 20:13:49 (9 years ago)
Author:
epyon
Message:
  • fix for material manager (default texture)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/material_manager.cc

    r509 r517  
    1717        , m_image_manager( imgmgr )
    1818{
    19         uint8 data[2 * 2 * 3];
    20         nv::raw_fill_n( data, 2 * 2 * 3, 0 );
    21         m_default = m_context->create_texture( ivec2(2,2), nv::image_format( nv::RGB ), nv::sampler(), data );
     19        uint8 data[2 * 2 * 4];
     20        nv::raw_fill_n( data, 2 * 2 * 4, 0 );
     21        m_default = m_context->create_texture( ivec2(2,2), nv::image_format( nv::RGBA ), nv::sampler(), data );
    2222}
    2323
Note: See TracChangeset for help on using the changeset viewer.