- 時間撮記:
- 2015-11-27 上午10:00:08 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c
r52641 r58895 498 498 static GLuint crStateFramebufferGet(CRFramebufferObjectState *fbo, GLenum target, CRFramebufferObject **apFBOs) 499 499 { 500 /** @todo Since this function returns not more than one FBO, callers can be cleaned up. */ 500 501 GLuint cPBOs = 0; 501 502 switch (target) … … 505 506 apFBOs[0] = fbo->readFB; 506 507 break; 508 /* OpenGL glFramebufferTexture, glFramebufferRenderbuffer, glFramebufferRenderbuffer specs: 509 * "GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER." 510 */ 511 case GL_FRAMEBUFFER: 507 512 case GL_DRAW_FRAMEBUFFER: 508 513 cPBOs = 1; 509 514 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 else518 {519 cPBOs = 2;520 apFBOs[0] = fbo->readFB;521 apFBOs[1] = fbo->drawFB;522 }523 515 break; 524 516 default:
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器