Changeset 43748 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Oct 25, 2012 4:59:17 PM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r41929 r43748 173 173 renderspuDestroyContext( GLint ctx ) 174 174 { 175 ContextInfo *context ;175 ContextInfo *context, *curCtx; 176 176 177 177 CRASSERT(ctx); … … 185 185 } 186 186 crHashtableDelete(render_spu.contextTable, ctx, crFree); 187 188 curCtx = GET_CONTEXT_VAL(); 189 if (curCtx == context) 190 SET_CONTEXT_VAL(NULL); 187 191 } 188 192 -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r43182 r43748 280 280 #ifdef CHROMIUM_THREADSAFE 281 281 extern CRtsd _RenderTSD; 282 #define GET_CONTEXT(T) ContextInfo *T = (ContextInfo *) crGetTSD(&_RenderTSD) 282 #define GET_CONTEXT_VAL() ((ContextInfo *) crGetTSD(&_RenderTSD)) 283 #define SET_CONTEXT_VAL(_v) do { \ 284 crSetTSD(&_RenderTSD, (_v)); \ 285 } while (0) 283 286 #else 284 #define GET_CONTEXT(T) ContextInfo *T = render_spu.currentContext 285 #endif 287 #define GET_CONTEXT_VAL() (render_spu.currentContext) 288 #define SET_CONTEXT_VAL(_v) do { \ 289 render_spu.currentContext = (_v); \ 290 } while (0) 291 292 #endif 293 294 #define GET_CONTEXT(T) ContextInfo *T = GET_CONTEXT_VAL() 286 295 287 296 extern void renderspuSetVBoxConfiguration( RenderSPU *spu );
Note:
See TracChangeset
for help on using the changeset viewer.