VirtualBox

Ignore:
Timestamp:
Dec 14, 2011 11:12:17 AM (13 years ago)
Author:
vboxsync
Message:

wine/XPDM: 1. Additional swapchain creation fixes 2. De-libwine'ize wined3d 3. Single context per swapchain 4. wine & crOgl current context sync fixes 5. Proper Get/ReleaseDC handling

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
Files:
2 edited

Legend:

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

    r39570 r39602  
    478478    return ret;
    479479}
    480 #ifdef VBOX_WITH_WDDM
     480
    481481static HRESULT IDirect3DDevice9Impl_DoCreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,
    482482        D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
    483 #else
    484 static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,
    485         D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
    486 #endif
    487483{
    488484    IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
     
    514510}
    515511
    516 #ifdef VBOX_WITH_WDDM
    517512static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,
    518513        D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
     
    541536    return D3D_OK;
    542537}
    543 #endif
    544538
    545539static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data) {
     
    31113105    local_parameters.PresentationInterval = present_parameters->PresentationInterval;
    31123106
    3113 #ifdef VBOX_WITH_WDDM
    31143107    hr = IDirect3DDevice9Impl_DoCreateAdditionalSwapChain((IDirect3DDevice9Ex *)This,
    31153108            &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain);
    3116 #else
    3117     hr = IDirect3DDevice9Impl_CreateAdditionalSwapChain((IDirect3DDevice9Ex *)This,
    3118             &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain);
    3119 #endif
    31203109    if (FAILED(hr))
    31213110    {
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/directx.c

    r39570 r39602  
    434434    /* fixup caps  */
    435435#ifdef VBOX_WITH_WDDM
     436    /* needed for Windows Media Player to work properly */
     437    pCaps->Caps |= D3DCAPS_READ_SCANLINE;
    436438    pCaps->Caps2 |= 0x00080000 /*D3DCAPS2_CANRENDERWINDOWED*/;
    437439    pCaps->Caps2 |= D3DCAPS2_CANSHARERESOURCE;
     
    482484#endif
    483485
    484     /* needed for Windows Media Player to work properly */
    485     pCaps->Caps |= D3DCAPS_READ_SCANLINE;
    486 
    487486    TRACE("(%p) returning %p\n", This, pCaps);
    488487
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