VirtualBox

Ignore:
Timestamp:
Jan 21, 2010 9:26:23 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

File:
1 edited

Legend:

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

    r23571 r25949  
    3838    IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface;
    3939
     40    TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj);
     41
    4042    if (IsEqualGUID(riid, &IID_IUnknown)
    4143        || IsEqualGUID(riid, &IID_IDirect3DVolume9)) {
     
    5355    IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface;
    5456
    55     TRACE("(%p)\n", This);
     57    TRACE("iface %p.\n", iface);
    5658
    5759    if (This->forwardReference) {
     
    6264        /* No container, handle our own refcounting */
    6365        ULONG ref = InterlockedIncrement(&This->ref);
    64         TRACE("(%p) : AddRef from %d\n", This, ref - 1);
     66
     67        TRACE("%p increasing refcount to %u.\n", iface, ref);
    6568
    6669        if (ref == 1)
     
    7881    IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface;
    7982
    80     TRACE("(%p)\n", This);
     83    TRACE("iface %p.\n", iface);
    8184
    8285    if (This->forwardReference) {
     
    8790        /* No container, handle our own refcounting */
    8891        ULONG ref = InterlockedDecrement(&This->ref);
    89         TRACE("(%p) : ReleaseRef to %d\n", This, ref);
     92
     93        TRACE("%p decreasing refcount to %u.\n", iface, ref);
    9094
    9195        if (ref == 0) {
     
    100104
    101105/* IDirect3DVolume9 Interface follow: */
    102 static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(LPDIRECT3DVOLUME9 iface, IDirect3DDevice9** ppDevice) {
    103     IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface;
    104     IWineD3DDevice       *myDevice = NULL;
    105 
    106     TRACE("iface %p, ppDevice %p\n", iface, ppDevice);
    107 
    108     wined3d_mutex_lock();
    109 
    110     IWineD3DVolume_GetDevice(This->wineD3DVolume, &myDevice);
    111     IWineD3DDevice_GetParent(myDevice, (IUnknown **)ppDevice);
    112     IWineD3DDevice_Release(myDevice);
    113 
    114     wined3d_mutex_unlock();
    115 
    116     return D3D_OK;
     106static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(IDirect3DVolume9 *iface, IDirect3DDevice9 **device)
     107{
     108    IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface;
     109    IDirect3DResource9 *resource;
     110    HRESULT hr;
     111
     112    TRACE("iface %p, device %p.\n", iface, device);
     113
     114    hr = IUnknown_QueryInterface(This->forwardReference, &IID_IDirect3DResource9, (void **)&resource);
     115    if (SUCCEEDED(hr))
     116    {
     117        hr = IDirect3DResource9_GetDevice(resource, device);
     118        IDirect3DResource9_Release(resource);
     119
     120        TRACE("Returning device %p.\n", *device);
     121    }
     122
     123    return hr;
    117124}
    118125
     
    121128    HRESULT hr;
    122129
    123     TRACE("(%p) Relay\n", This);
     130    TRACE("iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
     131            iface, debugstr_guid(refguid), pData, SizeOfData, Flags);
    124132
    125133    wined3d_mutex_lock();
     
    136144    HRESULT hr;
    137145
    138     TRACE("(%p) Relay\n", This);
     146    TRACE("iface %p, guid %s, data %p, data_size %p.\n",
     147            iface, debugstr_guid(refguid), pData, pSizeOfData);
    139148
    140149    wined3d_mutex_lock();
     
    151160    HRESULT hr;
    152161
    153     TRACE("(%p) Relay\n", This);
     162    TRACE("iface %p, guid %s.\n", iface, debugstr_guid(refguid));
    154163
    155164    wined3d_mutex_lock();
     
    166175    HRESULT res;
    167176
    168     TRACE("(This %p, riid %s, ppContainer %p)\n", This, debugstr_guid(riid), ppContainer);
     177    TRACE("iface %p, riid %s, container %p.\n", iface, debugstr_guid(riid), ppContainer);
    169178
    170179    if (!This->container) return E_NOINTERFACE;
     
    186195    HRESULT hr;
    187196
    188     TRACE("(%p) Relay\n", This);
     197    TRACE("iface %p, desc %p.\n", iface, pDesc);
    189198
    190199    wined3d_mutex_lock();
     
    212221    HRESULT hr;
    213222
    214     TRACE("(%p) relay %p %p %p %d\n", This, This->wineD3DVolume, pLockedVolume, pBox, Flags);
     223    TRACE("iface %p, locked_box %p, box %p, flags %#x.\n",
     224            iface, pLockedVolume, pBox, Flags);
    215225
    216226    wined3d_mutex_lock();
     
    228238    HRESULT hr;
    229239
    230     TRACE("(%p) relay %p\n", This, This->wineD3DVolume);
     240    TRACE("iface %p.\n", iface);
    231241
    232242    wined3d_mutex_lock();
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