VirtualBox

Changeset 29452 in vbox for trunk


Ignore:
Timestamp:
May 13, 2010 9:04:58 PM (15 years ago)
Author:
vboxsync
Message:

wddm/3d: make wine directly use VBoxOGL.dll instead of opengl32.dll

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
3 edited

Legend:

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

    r29432 r29452  
    887887    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter));
    888888
    889     AssertBreakpoint();
     889//    AssertBreakpoint();
    890890
    891891    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)RTMemAllocZ(sizeof (VBOXWDDMDISP_DEVICE));
     
    10311031    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter));
    10321032
    1033     AssertBreakpoint();
     1033//    AssertBreakpoint();
    10341034
    10351035    PVBOXWDDMDISP_ADAPTER pAdapter = (PVBOXWDDMDISP_ADAPTER)hAdapter;
     
    10521052    vboxVDbgPrint(("==> "__FUNCTION__"\n"));
    10531053
    1054     AssertBreakpoint();
     1054//    AssertBreakpoint();
    10551055
    10561056    HRESULT hr = S_OK;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/Makefile.kmk

    r28800 r29452  
    129129 wined3d_DEFS        += WINE_NO_DEBUG_MSGS
    130130endif
     131ifdef VBOXWDDM
     132 wined3d_DEFS        += VBOXWDDM
     133endif
    131134wined3d_INCS         := $(PATH_SUB_CURRENT)/include
    132135wined3d_SOURCES      := \
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/directx.c

    r28475 r29452  
    50755075#ifdef USE_WIN32_OPENGL
    50765076#define USE_GL_FUNC(pfn) pfn = (void*)GetProcAddress(mod_gl, #pfn);
     5077#ifdef VBOXWDDM
     5078        BOOL (APIENTRY *pDrvValidateVersion)(DWORD) DECLSPEC_HIDDEN;
     5079        mod_gl = LoadLibraryA("VBoxOGL.dll");
     5080#else
    50775081        mod_gl = LoadLibraryA("opengl32.dll");
     5082#endif
    50785083        if(!mod_gl) {
    50795084            ERR("Can't load opengl32.dll!\n");
    50805085            goto nogl_adapter;
    50815086        }
     5087#ifdef VBOXWDDM
     5088        /* init properly */
     5089        pDrvValidateVersion = (void*)GetProcAddress(mod_gl, "DrvValidateVersion");
     5090        if(!pDrvValidateVersion) {
     5091            ERR("Can't get DrvValidateVersion\n");
     5092            goto nogl_adapter;
     5093        }
     5094        if(!pDrvValidateVersion(1)) {
     5095            ERR("DrvValidateVersion FAILED\n");
     5096            goto nogl_adapter;
     5097        }
     5098#endif
    50825099#else
    50835100#define USE_GL_FUNC(pfn) pfn = (void*)pwglGetProcAddress(#pfn);
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