Changeset 1733


Ignore:
Timestamp:
Aug 13, 2012, 2:22:53 PM (8 years ago)
Author:
sam
Message:

gpu: activate FBO support on Android.

File:
1 edited

Legend:

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

    r1731 r1733  
    4646#if defined USE_D3D9
    4747#elif defined _XBOX
    48 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
     48#else
    4949    GLuint m_fbo, m_texture, m_depth;
    5050#endif
     
    111111{
    112112#if defined USE_D3D9 || defined _XBOX
    113 #elif GL_VERSION_1_1
     113#else
    114114    glDeleteFramebuffers(1, &m_data->m_fbo);
    115115    glDeleteTextures(1, &m_data->m_texture);
     116#   if GL_VERSION_1_1
    116117    if (m_data->m_depth != GL_INVALID_ENUM)
    117118        glDeleteRenderbuffers(1, &m_data->m_depth);
    118 #else
     119#   endif
    119120#endif
    120121    delete m_data;
     
    125126#if defined USE_D3D9 || defined _XBOX
    126127    return 0;
    127 #elif GL_VERSION_1_1
     128#else
    128129    return m_data->m_texture;
    129 #else
    130     return 0;
    131130#endif
    132131}
     
    135134{
    136135#if defined USE_D3D9 || defined _XBOX
    137 #elif GL_VERSION_1_1
     136#else
    138137    glBindFramebuffer(GL_FRAMEBUFFER, m_data->m_fbo);
    139 #else
    140138#endif
    141139}
     
    144142{
    145143#if defined USE_D3D9 || defined _XBOX
    146 #elif GL_VERSION_1_1
     144#else
    147145    glBindFramebuffer(GL_FRAMEBUFFER, NULL);
    148 #else
    149146#endif
    150147}
Note: See TracChangeset for help on using the changeset viewer.