Changeset 39051 in vbox
- Timestamp:
- Oct 20, 2011 9:52:39 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74471
- Location:
- trunk/src/VBox/Additions/common/crOpenGL/pack
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c
r38374 r39051 173 173 /* Fill in the new context info */ 174 174 /* XXX fix-up sharedCtx param here */ 175 #ifdef CR_DUP_CTXSTATE 175 176 pack_spu.context[slot].clientState = crStateCreateContext(NULL, visual, NULL); 177 #else 178 pack_spu.context[slot].clientState = crStateGetCurrent(); 179 #endif 180 CRASSERT(pack_spu.context[slot].clientState); 176 181 pack_spu.context[slot].clientState->bufferobject.retainBufferData = GL_TRUE; 177 182 pack_spu.context[slot].serverCtx = serverCtx; … … 202 207 crPackDestroyContext( context->serverCtx ); 203 208 209 #ifdef CR_DUP_CTXSTATE 204 210 crStateDestroyContext( context->clientState ); 211 #endif 205 212 206 213 context->clientState = NULL; … … 256 263 257 264 crPackSetContext( thread->packer ); 265 #ifdef CR_DUP_CTXSTATE 258 266 crStateMakeCurrent( newCtx->clientState ); 267 #else 268 CRASSERT(newCtx->clientState==crStateGetCurrent()); 269 #endif 259 270 //crStateSetCurrentPointers(newCtx->clientState, &thread->packer->current); 260 271 serverCtx = pack_spu.context[slot].serverCtx; … … 262 273 else { 263 274 thread->currentContext = NULL; 275 #ifdef CR_DUP_CTXSTATE 264 276 crStateMakeCurrent( NULL ); 277 #endif 265 278 newCtx = NULL; 266 279 serverCtx = 0; -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c
r33988 r39051 57 57 58 58 packspuCreateFunctions(); 59 #ifdef CR_DUP_CTXSTATE 59 60 crStateInit(); 61 #endif 60 62 61 63 return &pack_functions;
Note:
See TracChangeset
for help on using the changeset viewer.