Changeset 58895 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c
- Timestamp:
- Nov 27, 2015 10:00:08 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note:
See TracChangeset
for help on using the changeset viewer.