VirtualBox

忽略:
時間撮記:
2015-4-13 下午03:50:18 (10 年 以前)
作者:
vboxsync
訊息:

Host 3D: revert improper SEGFAULT fix introduced by r97041.

檔案:
修改 1 筆資料

圖例:

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

    r53400 r55212  
    308308        {
    309309            CRFBDataElement *el = &data->aElements[i];
    310             bool fUseRenderBuffer =
    311                 (el->enmFormat == GL_STENCIL_INDEX || el->enmFormat == GL_DEPTH_COMPONENT || el->enmFormat == GL_DEPTH_STENCIL);
    312310#if 0
    313311            char fname[200];
     
    345343            }
    346344
    347             /* Bind to corresponding buffer. */
    348             if (fUseRenderBuffer)
    349                 diff_api.BindRenderbufferEXT(GL_RENDERBUFFER_EXT, el->idFBO);
    350             else
    351                 diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, el->idFBO);
     345            diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, el->idFBO);
    352346
    353347            if (el->enmBuffer)
     
    386380                diff_api.Disable(GL_STENCIL_TEST);
    387381            }
    388 
    389             /* Bind to window system default buffer. */
    390             if (fUseRenderBuffer)
    391                 diff_api.BindRenderbufferEXT(GL_RENDERBUFFER_EXT, 0);
    392             else
    393                 diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, 0);
    394382        }
    395383
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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