Changeset 75556 in vbox
- Timestamp:
- Nov 18, 2018 7:21:02 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126715
- Location:
- trunk/src/VBox/Additions/3D/win
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/3D/win/VBoxGL/VBoxGL.c
r75443 r75556 61 61 }; 62 62 63 HMODULE hmod = VBoxWddmLoadAdresses(g_pszSvgaDll, aDrvProcs); 63 HMODULE hmod = VBoxWddmLoadSystemDll(g_pszSvgaDll); 64 if (hmod) 65 { 66 VBoxWddmLoadAdresses(hmod, aDrvProcs); 67 } 64 68 return hmod; 65 69 } … … 222 226 HDC hDC) 223 227 { 224 ASMBreakpoint();225 228 struct stw_context *ctx = stw_current_context(); 226 229 struct pipe_context *pipe = ctx->st->pipe; … … 260 263 HANDLE hSharedSurface) 261 264 { 262 ASMBreakpoint();263 265 struct stw_shared_surface *surface = NULL; 264 266 … … 285 287 struct stw_shared_surface *surface) 286 288 { 287 ASMBreakpoint();288 289 const WDDMGalliumDriverEnv *pEnv = g_drvfuncs.pfnGaDrvGetWDDMEnv(screen); 289 290 if (pEnv) … … 302 303 ULONGLONG PresentHistoryToken) 303 304 { 304 ASMBreakpoint();305 305 struct stw_context *ctx = stw_current_context(); 306 306 struct pipe_context *pipe = ctx->st->pipe; -
trunk/src/VBox/Additions/3D/win/VBoxWddmUmHlp/D3DKMT.cpp
r75443 r75556 45 45 } 46 46 47 DECLCALLBACK(HMODULE) VBoxWddmLoadAdresses(const char *pszModName, VBOXWDDMDLLPROC *paProcs) 48 { 49 HMODULE hmod = VBoxWddmLoadSystemDll(pszModName); 50 if (!hmod) 51 return NULL; 52 47 DECLCALLBACK(void) VBoxWddmLoadAdresses(HMODULE hmod, VBOXWDDMDLLPROC *paProcs) 48 { 53 49 struct VBOXWDDMDLLPROC *pIter = paProcs; 54 50 while (pIter->pszName) … … 58 54 ++pIter; 59 55 } 60 61 return hmod;62 56 } 63 57 … … 100 94 DECLCALLBACK(int) D3DKMTLoad(void) 101 95 { 102 HMODULE hmod = VBoxWddmLoadAdresses("gdi32.dll", g_D3DKMTLoadTable); 96 /* Modules which use D3DKMT must link with gdi32. */ 97 HMODULE hmod = GetModuleHandleA("gdi32.dll"); 98 Assert(hmod); 99 if (hmod) 100 { 101 VBoxWddmLoadAdresses(hmod, g_D3DKMTLoadTable); 102 } 103 103 return hmod != NULL; 104 104 } -
trunk/src/VBox/Additions/3D/win/VBoxWddmUmHlp/VBoxWddmUmHlp.h
r75531 r75556 80 80 81 81 DECLCALLBACK(HMODULE) VBoxWddmLoadSystemDll(const char *pszName); 82 DECLCALLBACK( HMODULE) VBoxWddmLoadAdresses(const char *pszModName, VBOXWDDMDLLPROC *paProcs);82 DECLCALLBACK(void) VBoxWddmLoadAdresses(HMODULE hmod, VBOXWDDMDLLPROC *paProcs); 83 83 84 84 DECLCALLBACK(int) D3DKMTLoad(void);
Note:
See TracChangeset
for help on using the changeset viewer.