VirtualBox

Changeset 39539 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Dec 6, 2011 2:03:30 PM (13 years ago)
Author:
vboxsync
Message:

wine/xpdm: fix wmplayer problem with your video card issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9_main.c

    r33656 r39539  
    6464
    6565HRESULT WINAPI DECLSPEC_HOTPATCH Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex **direct3d9ex) {
     66#ifndef VBOX_WITH_WDDM
     67    /* real D3D lib does not allow 9Ex creation if no WDDM driver is installed,
     68     * the Direct3DCreate9Ex should return D3DERR_NOTAVAILABLE in that case.
     69     * do it that way for our XPWM case */
     70    return D3DERR_NOTAVAILABLE;
     71#else
    6672    IDirect3D9 *ret;
    6773    IDirect3D9Impl* object;
    68 
    6974    TRACE("Calling Direct3DCreate9\n");
    7075    ret = Direct3DCreate9(SDKVersion);
     
    7883    *direct3d9ex = (IDirect3D9Ex *) object;
    7984    return D3D_OK;
     85#endif
    8086}
    8187
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