VirtualBox

Changeset 35127 in vbox for trunk/src


Ignore:
Timestamp:
Dec 15, 2010 12:19:37 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: fix OpenGL support for win2k guests

Location:
trunk/src/VBox/Additions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxCrHgsmi.cpp

    r34981 r35127  
    4848    if (!g_hVBoxCrHgsmiProvider)
    4949    {
    50         /** @todo GetModuleHandleEx() only is available for WinXP and up ... */
    51         BOOL bRc = GetModuleHandleEx(0, L"VBoxDispD3D", &g_hVBoxCrHgsmiProvider);
    52 //        g_hVBoxCrHgsmiProvider = GetModuleHandle(L"VBoxDispD3D");
    53         if (bRc)
     50        g_hVBoxCrHgsmiProvider = GetModuleHandle(L"VBoxDispD3D");
     51        if (g_hVBoxCrHgsmiProvider)
     52        {
     53            g_hVBoxCrHgsmiProvider = LoadLibrary(L"VBoxDispD3D");
     54        }
     55
     56        if (g_hVBoxCrHgsmiProvider)
    5457        {
    5558            g_pfnVBoxDispCrHgsmiInit = (PFNVBOXDISPCRHGSMI_INIT)GetProcAddress(g_hVBoxCrHgsmiProvider, "VBoxDispCrHgsmiInit");
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r34916 r35127  
    943943    PeekMessage(&msg, NULL, WM_USER, WM_USER, PM_NOREMOVE);
    944944# ifdef VBOX_WITH_WDDM
    945     if (GetModuleHandleEx(0, "VBoxDispD3D", &hVBoxD3D))
     945    hVBoxD3D = GetModuleHandle("VBoxDispD3D");
     946    if (hVBoxD3D)
     947    {
     948        hVBoxD3D = LoadLibrary("VBoxDispD3D");
     949    }
     950
     951    if (hVBoxD3D)
    946952    {
    947953        PFNVBOXDISPMP_GETCALLBACKS pfnVBoxDispMpGetCallbacks;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette