Changeset 39061 in vbox
- Timestamp:
- Oct 20, 2011 3:53:11 PM (13 years ago)
- 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
r39051 r39061 173 173 /* Fill in the new context info */ 174 174 /* XXX fix-up sharedCtx param here */ 175 #ifdef CR_DUP_CTXSTATE176 175 pack_spu.context[slot].clientState = crStateCreateContext(NULL, visual, NULL); 177 #else178 pack_spu.context[slot].clientState = crStateGetCurrent();179 #endif180 CRASSERT(pack_spu.context[slot].clientState);181 176 pack_spu.context[slot].clientState->bufferobject.retainBufferData = GL_TRUE; 182 177 pack_spu.context[slot].serverCtx = serverCtx; … … 207 202 crPackDestroyContext( context->serverCtx ); 208 203 209 #ifdef CR_DUP_CTXSTATE210 204 crStateDestroyContext( context->clientState ); 211 #endif212 205 213 206 context->clientState = NULL; … … 263 256 264 257 crPackSetContext( thread->packer ); 265 #ifdef CR_DUP_CTXSTATE266 258 crStateMakeCurrent( newCtx->clientState ); 267 #else268 CRASSERT(newCtx->clientState==crStateGetCurrent());269 #endif270 259 //crStateSetCurrentPointers(newCtx->clientState, &thread->packer->current); 271 260 serverCtx = pack_spu.context[slot].serverCtx; … … 273 262 else { 274 263 thread->currentContext = NULL; 275 #ifdef CR_DUP_CTXSTATE276 264 crStateMakeCurrent( NULL ); 277 #endif278 265 newCtx = NULL; 279 266 serverCtx = 0; -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c
r39051 r39061 57 57 58 58 packspuCreateFunctions(); 59 #ifdef CR_DUP_CTXSTATE60 59 crStateInit(); 61 #endif62 60 63 61 return &pack_functions;
Note:
See TracChangeset
for help on using the changeset viewer.