Changeset 1478


Ignore:
Timestamp:
Jun 14, 2012, 9:51:23 PM (7 years ago)
Author:
sam
Message:

gpu: do not convert u8vec4 to integers when set as array buffers, since we
want to normalise them to floats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/vertexbuffer.cpp

    r1475 r1478  
    361361
    362362#   if !defined __CELLOS_LV2__
    363         if (type_index <= 12)
     363        if (tlut[type_index].type == GL_FLOAT
     364             || tlut[type_index].type == GL_DOUBLE
     365             || tlut[type_index].type == GL_BYTE
     366             || tlut[type_index].type == GL_UNSIGNED_BYTE)
    364367        {
    365368            /* Normalize unsigned bytes by default, because it's usually
Note: See TracChangeset for help on using the changeset viewer.