Changeset 34107 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Nov 16, 2010 11:37:51 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67809
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
r34053 r34107 105 105 GLint id; /*unique shared state id, it's not always matching some existing context id!*/ 106 106 GLint saveCount; 107 108 /* Indicates that we have to resend data to GPU on first glMakeCurrent call with owning context */ 109 GLboolean bTexResyncNeeded; 110 GLboolean bVBOResyncNeeded; 111 GLboolean bFBOResyncNeeded; 107 112 } CRSharedState; 108 113 -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h
r31808 r34107 52 52 53 53 CRBufferObject *nullBuffer; /* name = 0 */ 54 55 GLboolean bResyncNeeded;56 54 } CRBufferObjectState; 57 55 -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_framebuffer.h
r31808 r34107 62 62 CRFramebufferObject *readFB, *drawFB; 63 63 CRRenderbufferObject *renderbuffer; 64 65 /* Indicates that we have to resend FBO data to GPU on first glMakeCurrent call with owning context */66 GLboolean bResyncNeeded;67 64 } CRFramebufferObjectState; 68 65 -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h
r31808 r34107 203 203 GLboolean broadcastTextures; /*@todo what is it for?*/ 204 204 205 /* Indicates that we have to resend texture data to GPU on first glMakeCurrent call with owning context */206 GLboolean bResyncNeeded;207 208 205 /* Per-texture unit state: */ 209 206 CRTextureUnit unit[CR_MAX_TEXTURE_UNITS]; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c
r33540 r34107 98 98 #endif 99 99 100 b->bResyncNeeded = GL_FALSE;100 ctx->shared->bVBOResyncNeeded = GL_FALSE; 101 101 } 102 102 … … 988 988 return; 989 989 990 if (to ->bResyncNeeded)990 if (toCtx->shared->bVBOResyncNeeded) 991 991 { 992 992 CRClientPointer *cp; … … 994 994 995 995 crHashtableWalk(toCtx->shared->buffersTable, crStateBufferObjectSyncCB, to); 996 to ->bResyncNeeded = GL_FALSE;996 toCtx->shared->bVBOResyncNeeded = GL_FALSE; 997 997 998 998 /*@todo, move to state_client.c*/ -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c
r31808 r34107 37 37 fbo->drawFB = NULL; 38 38 fbo->renderbuffer = NULL; 39 fbo->bResyncNeeded = GL_FALSE;39 ctx->shared->bFBOResyncNeeded = GL_FALSE; 40 40 } 41 41 … … 693 693 crStateFramebufferObjectSwitch(CRContext *from, CRContext *to) 694 694 { 695 if (to-> framebufferobject.bResyncNeeded)696 { 697 to-> framebufferobject.bResyncNeeded = GL_FALSE;695 if (to->shared->bFBOResyncNeeded) 696 { 697 to->shared->bFBOResyncNeeded = GL_FALSE; 698 698 699 699 crHashtableWalk(to->shared->rbTable, crStateSyncRenderbuffersCB, NULL); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
r34053 r34107 89 89 * For ex. we're saving snapshot right after it was loaded 90 90 * and some context hasn't been used by the guest application yet 91 * (pContext-> texture.bResyncNeeded==GL_TRUE).91 * (pContext->shared->bTexResyncNeeded==GL_TRUE). 92 92 */ 93 93 else if (ptl->bytes) … … 1630 1630 1631 1631 /* Mark textures for resending to GPU */ 1632 pContext-> texture.bResyncNeeded = GL_TRUE;1632 pContext->shared->bTexResyncNeeded = GL_TRUE; 1633 1633 1634 1634 /* Load lights */ … … 1778 1778 } 1779 1779 1780 pContext-> bufferobject.bResyncNeeded = GL_TRUE;1780 pContext->shared->bVBOResyncNeeded = GL_TRUE; 1781 1781 #endif 1782 1782 … … 1867 1867 1868 1868 /* Mark FBOs/RBOs for resending to GPU */ 1869 pContext-> framebufferobject.bResyncNeeded = GL_TRUE;1869 pContext->shared->bFBOResyncNeeded = GL_TRUE; 1870 1870 #endif 1871 1871 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texdiff.c
r32058 r34107 501 501 502 502 /* Resend texture images */ 503 if (toCtx-> texture.bResyncNeeded)503 if (toCtx->shared->bTexResyncNeeded) 504 504 { 505 toCtx-> texture.bResyncNeeded = GL_FALSE;505 toCtx->shared->bTexResyncNeeded = GL_FALSE; 506 506 507 507 crStateDiffAllTextureObjects(toCtx, bitID, GL_TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.