- 時間撮記:
- 2014-11-26 上午11:25:27 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_diff.c
r52263 r53400 308 308 { 309 309 CRFBDataElement *el = &data->aElements[i]; 310 bool fUseRenderBuffer = 311 (el->enmFormat == GL_STENCIL_INDEX || el->enmFormat == GL_DEPTH_COMPONENT || el->enmFormat == GL_DEPTH_STENCIL); 310 312 #if 0 311 313 char fname[200]; … … 343 345 } 344 346 345 diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, el->idFBO); 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); 346 352 347 353 if (el->enmBuffer) … … 380 386 diff_api.Disable(GL_STENCIL_TEST); 381 387 } 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); 382 394 } 383 395
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器