Changeset 46173 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- May 20, 2013 12:15:50 PM (12 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
r45910 r46173 265 265 { 266 266 /* override default draw and read buffers to be used for offscreen rendering */ 267 GLint id FBO;267 GLint idOverrrideFBO; 268 268 uint32_t cElements; 269 269 CRFBDataElement aElements[1]; -
trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h
r45940 r46173 236 236 * this is why we place some FBO stuff to the tail 237 237 * @todo: once we need to increment a saved state version, we could refactor this structure */ 238 GL uint iCurDrawBuffer;239 GL uint iCurReadBuffer;238 GLint iCurDrawBuffer; 239 GLint iCurReadBuffer; 240 240 241 241 GLuint idDepthStencilRB; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_diff.c
r45800 r46173 255 255 256 256 } 257 else if (data->id FBO)258 { 259 diff_api.BindFramebufferEXT(GL_READ_FRAMEBUFFER, data->id FBO);257 else if (data->idOverrrideFBO) 258 { 259 diff_api.BindFramebufferEXT(GL_READ_FRAMEBUFFER, data->idOverrrideFBO); 260 260 diff_api.ReadBuffer(GL_COLOR_ATTACHMENT0); 261 261 } … … 393 393 diff_api.DrawBuffer(to->framebufferobject.drawFB->drawbuffer[0]); 394 394 } 395 else if (data->id FBO)396 { 397 diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, data->id FBO);395 else if (data->idOverrrideFBO) 396 { 397 diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, data->idOverrrideFBO); 398 398 diff_api.DrawBuffer(GL_COLOR_ATTACHMENT0); 399 399 }
Note:
See TracChangeset
for help on using the changeset viewer.