Ignore:
Timestamp:
Apr 14, 2012, 11:33:08 PM (10 years ago)
Author:
sam
Message:

gpu: port the vertex buffer abstraction layer to OpenGL.

File:
1 edited

Legend:

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

    r1227 r1228  
    236236{
    237237    ShaderAttrib ret;
    238 #if defined USE_D3D9 || defined _XBOX
    239     ret.m_flags = (uint32_t)index << 16;
    240     ret.m_flags |= (uint32_t)usage;
    241 #elif !defined __CELLOS_LV2__
    242     ret.m_flags = glGetAttribLocation(data->prog_id, attr);
    243 #else
    244     /* FIXME: can we do this at all? */
     238    ret.m_flags = (uint64_t)(uint16_t)usage << 16;
     239    ret.m_flags |= (uint64_t)(uint16_t)index;
     240#if defined USE_D3D9 || defined _XBOX
     241#elif !defined __CELLOS_LV2__
     242    ret.m_flags |= (uint64_t)
     243                  (uint32_t)glGetAttribLocation(data->prog_id, attr) << 32;
     244#else
     245    /* FIXME: can we do this at all on the PS3? */
    245246#endif
    246247    return ret;
Note: See TracChangeset for help on using the changeset viewer.