Changeset 25949 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/volumetexture.c
- Timestamp:
- Jan 21, 2010 9:26:23 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56794
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/volumetexture.c
r23571 r25949 38 38 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; 39 39 40 TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj); 41 40 42 if (IsEqualGUID(riid, &IID_IUnknown) 41 43 || IsEqualGUID(riid, &IID_IDirect3DResource9) … … 56 58 ULONG ref = InterlockedIncrement(&This->ref); 57 59 58 TRACE(" (%p) : AddRef from %d\n", This, ref - 1);60 TRACE("%p increasing refcount to %u.\n", iface, ref); 59 61 60 62 if (ref == 1) … … 73 75 ULONG ref = InterlockedDecrement(&This->ref); 74 76 75 TRACE(" (%p) : ReleaseRef to %d\n", This, ref);77 TRACE("%p decreasing refcount to %u.\n", iface, ref); 76 78 77 79 if (ref == 0) { 78 IDirect3DDevice9Ex_Release(This->parentDevice); 80 IDirect3DDevice9Ex *parentDevice = This->parentDevice; 81 79 82 wined3d_mutex_lock(); 80 83 IWineD3DVolumeTexture_Release(This->wineD3DVolumeTexture); 81 84 wined3d_mutex_unlock(); 85 86 /* Release the device last, as it may cause the device to be destroyed. */ 87 IDirect3DDevice9Ex_Release(parentDevice); 82 88 } 83 89 return ref; … … 85 91 86 92 /* IDirect3DVolumeTexture9 IDirect3DResource9 Interface follow: */ 87 static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetDevice(LPDIRECT3DVOLUMETEXTURE9 iface, IDirect3DDevice9** ppDevice) { 88 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; 89 IWineD3DDevice *wined3d_device; 90 HRESULT hr; 91 92 TRACE("(%p) Relay\n", This); 93 94 wined3d_mutex_lock(); 95 hr = IWineD3DStateBlock_GetDevice(This->wineD3DVolumeTexture, &wined3d_device); 96 if (SUCCEEDED(hr)) 97 { 98 IWineD3DDevice_GetParent(wined3d_device, (IUnknown **)ppDevice); 99 IWineD3DDevice_Release(wined3d_device); 100 } 101 wined3d_mutex_unlock(); 102 103 return hr; 93 static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetDevice(IDirect3DVolumeTexture9 *iface, IDirect3DDevice9 **device) 94 { 95 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; 96 97 TRACE("iface %p, device %p.\n", iface, device); 98 99 *device = (IDirect3DDevice9 *)This->parentDevice; 100 IDirect3DDevice9_AddRef(*device); 101 102 TRACE("Returning device %p.\n", *device); 103 104 return D3D_OK; 104 105 } 105 106 … … 108 109 HRESULT hr; 109 110 110 TRACE("(%p) Relay\n", This); 111 TRACE("iface %p, guid %s, data %p, data_size %u, flags %#x.\n", 112 iface, debugstr_guid(refguid), pData, SizeOfData, Flags); 111 113 112 114 wined3d_mutex_lock(); … … 123 125 HRESULT hr; 124 126 125 TRACE("(%p) Relay\n", This); 127 TRACE("iface %p, guid %s, data %p, data_size %p.\n", 128 iface, debugstr_guid(refguid), pData, pSizeOfData); 126 129 127 130 wined3d_mutex_lock(); … … 138 141 HRESULT hr; 139 142 140 TRACE(" (%p) Relay\n", This);143 TRACE("iface %p, guid %s.\n", iface, debugstr_guid(refguid)); 141 144 142 145 wined3d_mutex_lock(); … … 153 156 DWORD priority; 154 157 155 TRACE(" (%p) Relay\n", This);158 TRACE("iface %p, priority %u.\n", iface, PriorityNew); 156 159 157 160 wined3d_mutex_lock(); … … 168 171 DWORD priority; 169 172 170 TRACE(" (%p) Relay\n", This);173 TRACE("iface %p.\n", iface); 171 174 172 175 wined3d_mutex_lock(); … … 182 185 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; 183 186 184 TRACE(" (%p) Relay\n", This);187 TRACE("iface %p.\n", iface); 185 188 186 189 wined3d_mutex_lock(); … … 195 198 D3DRESOURCETYPE type; 196 199 197 TRACE(" (%p) Relay\n", This);200 TRACE("iface %p.\n", iface); 198 201 199 202 wined3d_mutex_lock(); … … 211 214 DWORD lod; 212 215 213 TRACE(" (%p) Relay\n", This);216 TRACE("iface %p, lod %u.\n", iface, LODNew); 214 217 215 218 wined3d_mutex_lock(); … … 226 229 DWORD lod; 227 230 228 TRACE(" (%p) Relay\n", This);231 TRACE("iface %p.\n", iface); 229 232 230 233 wined3d_mutex_lock(); … … 241 244 DWORD level_count; 242 245 243 TRACE(" (%p) Relay\n", This);246 TRACE("iface %p.\n", iface); 244 247 245 248 wined3d_mutex_lock(); … … 256 259 HRESULT hr; 257 260 258 TRACE(" (%p) Relay\n", This);261 TRACE("iface %p, filter_type %#x.\n", iface, FilterType); 259 262 260 263 wined3d_mutex_lock(); … … 271 274 D3DTEXTUREFILTERTYPE filter_type; 272 275 273 TRACE(" (%p) Relay\n", This);276 TRACE("iface %p.\n", iface); 274 277 275 278 wined3d_mutex_lock(); … … 285 288 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; 286 289 287 TRACE(" (%p) Relay\n", This);290 TRACE("iface %p.\n", iface); 288 291 289 292 wined3d_mutex_lock(); … … 300 303 HRESULT hr; 301 304 302 TRACE(" (%p) Relay\n", This);305 TRACE("iface %p, level %u, desc %p.\n", iface, Level, pDesc); 303 306 304 307 wined3d_mutex_lock(); … … 327 330 IWineD3DVolume *myVolume = NULL; 328 331 329 TRACE(" (%p) Relay\n", This);332 TRACE("iface %p, level %u, volume %p.\n", iface, Level, ppVolumeLevel); 330 333 331 334 wined3d_mutex_lock(); … … 346 349 HRESULT hr; 347 350 348 TRACE("(%p) Relay %p %p %p %d\n", This, This->wineD3DVolumeTexture, pLockedVolume, pBox,Flags); 351 TRACE("iface %p, level %u, locked_box %p, box %p, flags %#x.\n", 352 iface, Level, pLockedVolume, pBox, Flags); 349 353 350 354 wined3d_mutex_lock(); … … 362 366 HRESULT hr; 363 367 364 TRACE(" (%p) Relay %p %d\n", This, This->wineD3DVolumeTexture, Level);368 TRACE("iface %p, level %u.\n", iface, Level); 365 369 366 370 wined3d_mutex_lock(); … … 377 381 HRESULT hr; 378 382 379 TRACE(" (%p) Relay\n", This);383 TRACE("iface %p, dirty_box %p.\n", iface, pDirtyBox); 380 384 381 385 wined3d_mutex_lock();
Note:
See TracChangeset
for help on using the changeset viewer.