VirtualBox

忽略:
時間撮記:
2015-11-27 上午10:00:08 (9 年 以前)
作者:
vboxsync
訊息:

OpenGL/state_tracker: GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c

    r52641 r58895  
    498498static GLuint crStateFramebufferGet(CRFramebufferObjectState *fbo, GLenum target, CRFramebufferObject **apFBOs)
    499499{
     500    /** @todo Since this function returns not more than one FBO, callers can be cleaned up. */
    500501    GLuint cPBOs = 0;
    501502    switch (target)
     
    505506            apFBOs[0] = fbo->readFB;
    506507            break;
     508        /* OpenGL glFramebufferTexture, glFramebufferRenderbuffer, glFramebufferRenderbuffer specs:
     509         * "GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER."
     510         */
     511        case GL_FRAMEBUFFER:
    507512        case GL_DRAW_FRAMEBUFFER:
    508513            cPBOs = 1;
    509514            apFBOs[0] = fbo->drawFB;
    510             break;
    511         case GL_FRAMEBUFFER:
    512             if (fbo->readFB == fbo->drawFB)
    513             {
    514                 cPBOs = 1;
    515                 apFBOs[0] = fbo->readFB;
    516             }
    517             else
    518             {
    519                 cPBOs = 2;
    520                 apFBOs[0] = fbo->readFB;
    521                 apFBOs[1] = fbo->drawFB;
    522             }
    523515            break;
    524516        default:
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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