Changeset 55825 in vbox for trunk/src/VBox/Additions
- Timestamp:
- May 12, 2015 12:51:48 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk
r52038 r55825 207 207 $(VBOX_LIB_OGL_CRUTIL) \ 208 208 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) 209 210 VBoxOGL_LIBS.win += \ 211 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger$(VBOX_SUFF_LIB) \ 212 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB) 213 209 214 if1of ($(KBUILD_TARGET), linux solaris freebsd) 210 215 VBoxOGL_LIBS += \ … … 242 247 $(VBOX_LIB_OGL_CRUTIL_X86) \ 243 248 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB) 249 250 VBoxOGL-x86_LIBS.win += \ 251 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \ 252 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) 253 254 244 255 VBoxOGL-x86_SOURCES.win = $(subst cropengl.def,cropengl-x86.def,$(VBoxOGL_SOURCES.win)) 245 256 VBoxOGL-x86_CLEAN.win = $(subst cropengl.def,cropengl-x86.def,$(VBoxOGL_CLEAN.win)) -
trunk/src/VBox/Additions/common/crOpenGL/icd_drv.c
r55620 r55825 22 22 #include "stub.h" 23 23 #include "cr_mem.h" 24 25 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 26 # include <VBox/VBoxCrHgsmi.h> 27 # include <VBox/VBoxUhgsmi.h> 28 #endif 24 29 25 30 #include <windows.h> … … 155 160 char dpyName[MAX_DPY_NAME]; 156 161 ContextInfo *context; 162 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 163 PVBOXUHGSMI pHgsmi = NULL; 164 #endif 157 165 158 166 CR_DDI_PROLOGUE(); … … 170 178 #endif 171 179 180 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 181 pHgsmi = VBoxCrHgsmiCreate(); 182 #endif 183 172 184 context = stubNewContext(dpyName, desiredVisual, UNDECIDED, 0 173 185 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 174 , NULL186 , pHgsmi 175 187 #endif 176 188 ); … … 301 313 BOOL APIENTRY DrvDeleteContext(HGLRC hglrc) 302 314 { 303 CR_DDI_PROLOGUE(); 304 /*crDebug( "DrvDeleteContext(0x%x) called", hglrc );*/ 315 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 316 ContextInfo *pContext; 317 PVBOXUHGSMI pHgsmi = NULL; 318 #endif 319 320 CR_DDI_PROLOGUE(); 321 crDebug( "DrvDeleteContext(0x%x) called", hglrc ); 322 323 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 324 crHashtableLock(stub.contextTable); 325 326 pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); 327 if (pContext) 328 pHgsmi = pContext->pHgsmi; 329 330 crHashtableUnlock(stub.contextTable); 331 #endif 332 305 333 stubDestroyContext( (unsigned long) hglrc ); 306 return 1; 334 335 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 336 if (pHgsmi) 337 VBoxCrHgsmiDestroy(pHgsmi); 338 #endif 339 340 return true; 307 341 } 308 342 -
trunk/src/VBox/Additions/common/crOpenGL/load.c
r52552 r55825 1460 1460 } 1461 1461 1462 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 1463 VBoxCrHgsmiInit(); 1464 #endif 1462 1465 break; 1463 1466 } … … 1474 1477 } 1475 1478 1479 1480 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 1481 VBoxCrHgsmiTerm(); 1482 #endif 1483 1476 1484 stubSPUSafeTearDown(); 1477 1485
Note:
See TracChangeset
for help on using the changeset viewer.