Ignore:
Timestamp:
Jun 28, 2012, 2:30:23 PM (9 years ago)
Author:
sam
Message:

gpu: fix vertex and index buffer behaviour on the PS3.

File:
1 edited

Legend:

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

    r1455 r1532  
    4848#elif defined _XBOX
    4949    D3DIndexBuffer *m_ibo;
    50 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     50#else
    5151    GLuint m_ibo;
    5252    uint8_t *m_memory;
     
    7070                                              &m_data->m_ibo, NULL)))
    7171        Abort();
    72 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     72#else
    7373    glGenBuffers(1, &m_data->m_ibo);
    7474    m_data->m_memory = new uint8_t[size];
     
    8383        if (FAILED(m_data->m_ibo->Release()))
    8484            Abort();
    85 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     85#else
    8686        glDeleteBuffers(1, &m_data->m_ibo);
    8787        delete[] m_data->m_memory;
     
    101101        Abort();
    102102    return ret;
    103 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     103#else
    104104    return m_data->m_memory + offset;
    105105#endif
     
    114114    if (FAILED(m_data->m_ibo->Unlock()))
    115115        Abort();
    116 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     116#else
    117117    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_data->m_ibo);
    118118    glBufferData(GL_ELEMENT_ARRAY_BUFFER, m_data->m_size, m_data->m_memory,
     
    129129    if (FAILED(g_d3ddevice->SetIndices(m_data->m_ibo)))
    130130        Abort();
    131 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     131#else
    132132    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_data->m_ibo);
    133133    /* XXX: not necessary because we kept track of the size */
     
    145145    if (FAILED(g_d3ddevice->SetIndices(NULL)))
    146146        Abort();
    147 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     147#else
    148148    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
    149149#endif
Note: See TracChangeset for help on using the changeset viewer.