VirtualBox

Ignore:
Timestamp:
Oct 13, 2010 10:01:43 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: cromium hgsmi support fix

File:
1 edited

Legend:

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

    r33117 r33120  
    66static VBOXCRHGSMI_CALLBACKS g_VBoxCrHgsmiCallbacks;
    77static HMODULE g_hVBoxCrHgsmiProvider = NULL;
    8 //static uint32_t g_cVBoxCrHgsmiProvider = 0;
     8static uint32_t g_cVBoxCrHgsmiProvider = 0;
    99
    1010typedef VBOXWDDMDISP_DECL(int) FNVBOXDISPCRHGSMI_INIT(PVBOXCRHGSMI_CALLBACKS pCallbacks);
     
    2626    if (!g_hVBoxCrHgsmiProvider)
    2727    {
    28 //        BOOL bRc = GetModuleHandleEx(0, "VBoxDispD3D", &g_hVBoxCrHgsmiProvider);
    29         g_hVBoxCrHgsmiProvider = GetModuleHandle(L"VBoxDispD3D");
    30         if (g_hVBoxCrHgsmiProvider)
     28        BOOL bRc = GetModuleHandleEx(0, "VBoxDispD3D", &g_hVBoxCrHgsmiProvider);
     29//        g_hVBoxCrHgsmiProvider = GetModuleHandle(L"VBoxDispD3D");
     30        if (bRc)
    3131        {
    3232            g_pfnVBoxDispCrHgsmiInit = (PFNVBOXDISPCRHGSMI_INIT)GetProcAddress(g_hVBoxCrHgsmiProvider, "VBoxDispCrHgsmiInit");
     
    3535            {
    3636                g_pfnVBoxDispCrHgsmiInit(pCallbacks);
    37 //                g_cVBoxCrHgsmiProvider = 1;
    3837            }
    3938
     
    5251#endif
    5352    }
    54 //    else
    55 //    {
    56 //        ++g_cVBoxCrHgsmiProvider;
    57 //    }
    5853
    5954    if (g_hVBoxCrHgsmiProvider)
    6055    {
     56        ++g_cVBoxCrHgsmiProvider;
    6157        return VINF_SUCCESS;
    6258    }
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