VirtualBox

Ignore:
Timestamp:
Dec 14, 2011 11:12:17 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75376
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

File:
1 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    {
Note: See TracChangeset for help on using the changeset viewer.

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