Changeset 55620 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- May 3, 2015 3:21:53 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99993
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/icd_drv.c
r51559 r55620 110 110 PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback) 111 111 { 112 ContextInfo *context; 113 WindowInfo *window; 114 BOOL ret; 115 116 CR_DDI_PROLOGUE(); 117 118 /*crDebug( "DrvSetContext called(0x%x, 0x%x)", hdc, hglrc );*/ 112 ContextInfo *pContext; 113 WindowInfo *pWindowInfo; 114 BOOL ret = false; 115 116 CR_DDI_PROLOGUE(); 117 119 118 (void) (callback); 120 119 … … 122 121 crHashtableLock(stub.contextTable); 123 122 124 context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); 125 window = stubGetWindowInfo(hdc); 126 127 ret = stubMakeCurrent(window, context); 123 pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); 124 if (pContext) 125 { 126 pWindowInfo = stubGetWindowInfo(hdc); 127 if (pWindowInfo) 128 ret = stubMakeCurrent(pWindowInfo, pContext); 129 else 130 crError("no window info available."); 131 } 132 else 133 crError("No context found."); 128 134 129 135 crHashtableUnlock(stub.contextTable); 130 136 crHashtableUnlock(stub.windowTable); 131 137 132 return ret ? &icdTable :NULL;138 return ret ? &icdTable : NULL; 133 139 } 134 140
Note:
See TracChangeset
for help on using the changeset viewer.