Changeset 44377 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Jan 25, 2013 1:41:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r44290 r44377 185 185 context = (ContextInfo *) crHashtableSearch(render_spu.contextTable, ctx); 186 186 CRASSERT(context); 187 188 curCtx = GET_CONTEXT_VAL(); 189 CRASSERT(curCtx); 190 if (curCtx == context) 191 { 192 renderspuMakeCurrent( 0, 0, 0 ); 193 curCtx = GET_CONTEXT_VAL(); 194 Assert(curCtx); 195 Assert(curCtx != context); 196 } 197 187 198 renderspu_SystemDestroyContext( context ); 188 199 if (context->extensionString) { … … 191 202 } 192 203 crHashtableDelete(render_spu.contextTable, ctx, crFree); 193 194 curCtx = GET_CONTEXT_VAL();195 if (curCtx == context)196 SET_CONTEXT_VAL(NULL);197 204 } 198 205
Note:
See TracChangeset
for help on using the changeset viewer.