VirtualBox

Changeset 46229 in vbox for trunk/src


Ignore:
Timestamp:
May 23, 2013 10:54:40 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: aux buffer support fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c

    r46173 r46229  
    990990GLint crServerMuralFBOIdxFromBufferName(CRMuralInfo *mural, GLenum buffer)
    991991{
    992     if (buffer == GL_FRONT
    993             || buffer == GL_FRONT_LEFT
    994             || buffer == GL_FRONT_RIGHT)
    995         return CR_SERVER_FBO_FB_IDX(mural);
    996     if (buffer == GL_BACK
    997             || buffer == GL_BACK_LEFT
    998             || buffer == GL_BACK_RIGHT)
    999         return CR_SERVER_FBO_BB_IDX(mural);
    1000     if (buffer == GL_NONE)
    1001         return -1;
    1002 
    1003     crWarning("crServerMuralFBOIdxFromBufferName: invalid buffer passed 0x%x", buffer);
    1004     return -2;
     992    switch (buffer)
     993    {
     994        case GL_FRONT:
     995        case GL_FRONT_LEFT:
     996        case GL_FRONT_RIGHT:
     997            return CR_SERVER_FBO_FB_IDX(mural);
     998        case GL_BACK:
     999        case GL_BACK_LEFT:
     1000        case GL_BACK_RIGHT:
     1001            return CR_SERVER_FBO_BB_IDX(mural);
     1002        case GL_NONE:
     1003        case GL_AUX0:
     1004        case GL_AUX1:
     1005        case GL_AUX2:
     1006        case GL_AUX3:
     1007        case GL_LEFT:
     1008        case GL_RIGHT:
     1009        case GL_FRONT_AND_BACK:
     1010            return -1;
     1011        default:
     1012            crWarning("crServerMuralFBOIdxFromBufferName: invalid buffer passed 0x%x", buffer);
     1013            return -2;
     1014    }
    10051015}
    10061016
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette