Changeset 39257 in vbox
- Timestamp:
- Nov 9, 2011 3:30:48 PM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/vboxext.c
r38366 r39257 186 186 FreeLibrary(pWorker->hSelf); 187 187 188 CloseHandle(pWorker->hThread); 189 188 190 return S_OK; 189 191 } -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/wined3d_main.c
r38363 r39257 150 150 } 151 151 152 #ifdef VBOX_WITH_WDDM 153 void WINAPI wined3d_mutex_init(void) 154 { 155 InitializeCriticalSection(&wined3d_cs); 156 } 157 158 void WINAPI wined3d_mutex_term(void) 159 { 160 DeleteCriticalSection(&wined3d_cs); 161 } 162 #endif 163 152 164 static BOOL wined3d_dll_init(HINSTANCE hInstDLL) 153 165 { … … 161 173 WNDCLASSA wc; 162 174 175 #ifdef VBOX_WITH_WDDM 176 wined3d_mutex_init(); 177 #endif 178 163 179 wined3d_context_tls_idx = TlsAlloc(); 164 180 if (wined3d_context_tls_idx == TLS_OUT_OF_INDEXES) … … 166 182 DWORD err = GetLastError(); 167 183 ERR("Failed to allocate context TLS index, err %#x.\n", err); 184 #ifdef VBOX_WITH_WDDM 185 wined3d_mutex_term(); 186 #endif 168 187 return FALSE; 169 188 } … … 192 211 ERR("Failed to free context TLS index, err %#x.\n", err); 193 212 } 213 #ifdef VBOX_WITH_WDDM 214 wined3d_mutex_term(); 215 #endif 194 216 return FALSE; 195 217 } … … 390 412 UnregisterClassA(WINED3D_OPENGL_WINDOW_CLASS_NAME, hInstDLL); 391 413 414 #ifdef VBOX_WITH_WDDM 415 wined3d_mutex_term(); 416 #endif 417 392 418 return TRUE; 393 419 }
Note:
See TracChangeset
for help on using the changeset viewer.