Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3d96f97e
Commit
3d96f97e
authored
Nov 02, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use the correct AddRef and Release macros.
parent
01eb9269
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
50 additions
and
50 deletions
+50
-50
basetexture.c
dlls/d3d9/basetexture.c
+1
-1
cubetexture.c
dlls/d3d9/cubetexture.c
+3
-3
device.c
dlls/d3d9/device.c
+3
-3
directx.c
dlls/d3d9/directx.c
+4
-4
indexbuffer.c
dlls/d3d9/indexbuffer.c
+3
-3
pixelshader.c
dlls/d3d9/pixelshader.c
+3
-3
query.c
dlls/d3d9/query.c
+3
-3
resource.c
dlls/d3d9/resource.c
+1
-1
stateblock.c
dlls/d3d9/stateblock.c
+5
-5
surface.c
dlls/d3d9/surface.c
+3
-3
swapchain.c
dlls/d3d9/swapchain.c
+4
-4
texture.c
dlls/d3d9/texture.c
+3
-3
vertexbuffer.c
dlls/d3d9/vertexbuffer.c
+3
-3
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+4
-4
vertexshader.c
dlls/d3d9/vertexshader.c
+3
-3
volume.c
dlls/d3d9/volume.c
+1
-1
volumetexture.c
dlls/d3d9/volumetexture.c
+3
-3
No files found.
dlls/d3d9/basetexture.c
View file @
3d96f97e
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEX
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DBaseTexture9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
dlls/d3d9/cubetexture.c
View file @
3d96f97e
...
...
@@ -33,7 +33,7 @@ static HRESULT WINAPI IDirect3DCubeTexture9Impl_QueryInterface(LPDIRECT3DCUBETEX
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DCubeTexture9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DCubeTexture9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -63,7 +63,7 @@ static ULONG WINAPI IDirect3DCubeTexture9Impl_Release(LPDIRECT3DCUBETEXTURE9 ifa
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DCubeTexture_Destroy
(
This
->
wineD3DCubeTexture
,
D3D9CB_DestroySurface
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
LeaveCriticalSection
(
&
d3d9_cs
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -365,7 +365,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(LPDIRECT3DDEVICE9EX ifac
FIXME
(
"(%p) call to IWineD3DDevice_CreateCubeTexture failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppCubeTexture
=
(
LPDIRECT3DCUBETEXTURE9
)
object
;
TRACE
(
"(%p) : Created cube texture %p
\n
"
,
This
,
object
);
...
...
dlls/d3d9/device.c
View file @
3d96f97e
...
...
@@ -34,7 +34,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_QueryInterface(LPDIRECT3DDEVICE9EX if
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DDevice9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
*
ppobj
=
This
;
TRACE
(
"Returning IDirect3DDevice9 interface at %p
\n
"
,
*
ppobj
);
return
S_OK
;
...
...
@@ -514,7 +514,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateSurface(LPDIRECT3DDEVICE9EX if
FIXME
(
"(%p) call to IWineD3DDevice_CreateSurface failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
TRACE
(
"(%p) : Created surface %p
\n
"
,
This
,
object
);
*
ppSurface
=
(
LPDIRECT3DSURFACE9
)
object
;
...
...
@@ -1721,7 +1721,7 @@ HRESULT WINAPI D3D9CB_CreateSurface(IUnknown *device, IUnknown *pSuperior, UINT
if
(
SUCCEEDED
(
res
))
{
*
ppSurface
=
d3dSurface
->
wineD3DSurface
;
d3dSurface
->
container
=
pSuperior
;
I
Unknown
_Release
(
d3dSurface
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
d3dSurface
->
parentDevice
);
d3dSurface
->
parentDevice
=
NULL
;
d3dSurface
->
forwardReference
=
pSuperior
;
}
else
{
...
...
dlls/d3d9/directx.c
View file @
3d96f97e
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9EX iface, REFIID
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3D9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3D9Ex
_AddRef
(
iface
);
*
ppobj
=
This
;
TRACE
(
"Returning IDirect3D9 interface at %p
\n
"
,
*
ppobj
);
return
S_OK
;
...
...
@@ -346,7 +346,7 @@ HRESULT WINAPI D3D9CB_CreateRenderTarget(IUnknown *device, IUnknown *pSuperior,
d3dSurface
->
container
=
pSuperior
;
d3dSurface
->
isImplicit
=
TRUE
;
/* Implicit surfaces are created with an refcount of 0 */
I
Unknown_Release
((
IUnknown
*
)
d3dSurface
);
I
Direct3DSurface9_Release
((
IDirect3DSurface9
*
)
d3dSurface
);
}
else
{
*
ppSurface
=
NULL
;
}
...
...
@@ -393,7 +393,7 @@ static HRESULT WINAPI D3D9CB_CreateAdditionalSwapChain(IUnknown *device,
*
ppSwapChain
=
d3dSwapChain
->
wineD3DSwapChain
;
d3dSwapChain
->
isImplicit
=
TRUE
;
/* Implicit swap chains are created with an refcount of 0 */
I
Unknown_Release
((
IUnknown
*
)
d3dSwapChain
);
I
Direct3DSwapChain9_Release
((
IDirect3DSwapChain9
*
)
d3dSwapChain
);
}
else
{
*
ppSwapChain
=
NULL
;
}
...
...
@@ -444,7 +444,7 @@ HRESULT WINAPI D3D9CB_CreateDepthStencilSurface(IUnknown *device, IUnknown *pSup
d3dSurface
->
container
=
device
;
d3dSurface
->
isImplicit
=
TRUE
;
/* Implicit surfaces are created with an refcount of 0 */
I
Unknown_Release
((
IUnknown
*
)
d3dSurface
);
I
Direct3DSurface9_Release
((
IDirect3DSurface9
*
)
d3dSurface
);
}
return
res
;
}
...
...
dlls/d3d9/indexbuffer.c
View file @
3d96f97e
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer9Impl_QueryInterface(LPDIRECT3DINDEXBU
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DIndexBuffer9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DIndexBuffer9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DIndexBuffer9Impl_Release(LPDIRECT3DINDEXBUFFER9 ifa
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DIndexBuffer_Release
(
This
->
wineD3DIndexBuffer
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -237,7 +237,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateIndexBuffer(LPDIRECT3DDEVICE9EX iface,
FIXME
(
"(%p) call to IWineD3DDevice_CreateIndexBuffer failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppIndexBuffer
=
(
LPDIRECT3DINDEXBUFFER9
)
object
;
TRACE
(
"(%p) : Created index buffer %p
\n
"
,
This
,
object
);
...
...
dlls/d3d9/pixelshader.c
View file @
3d96f97e
...
...
@@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DPixelShader9Impl_QueryInterface(LPDIRECT3DPIXELSH
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DPixelShader9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DPixelShader9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DPixelShader9Impl_Release(LPDIRECT3DPIXELSHADER9 ifa
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DPixelShader_Release
(
This
->
wineD3DPixelShader
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -136,7 +136,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreatePixelShader(LPDIRECT3DDEVICE9EX iface,
FIXME
(
"(%p) call to IWineD3DDevice_CreatePixelShader failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppShader
=
(
IDirect3DPixelShader9
*
)
object
;
TRACE
(
"(%p) : Created pixel shader %p
\n
"
,
This
,
object
);
...
...
dlls/d3d9/query.c
View file @
3d96f97e
...
...
@@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DQuery9Impl_QueryInterface(LPDIRECT3DQUERY9 iface,
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DQuery9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DQuery9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DQuery9Impl_Release(LPDIRECT3DQUERY9 iface) {
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DQuery_Release
(
This
->
wineD3DQuery
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -179,7 +179,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9EX iface, D3DQU
FIXME
(
"(%p) call to IWineD3DDevice_CreateQuery failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppQuery
=
(
LPDIRECT3DQUERY9
)
object
;
TRACE
(
"(%p) : Created query %p
\n
"
,
This
,
object
);
...
...
dlls/d3d9/resource.c
View file @
3d96f97e
...
...
@@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DResource9Impl_QueryInterface(LPDIRECT3DRESOURCE9
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DResource9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
dlls/d3d9/stateblock.c
View file @
3d96f97e
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DStateBlock9Impl_QueryInterface(LPDIRECT3DSTATEBLO
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DStateBlock9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DStateBlock9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -58,9 +58,9 @@ static ULONG WINAPI IDirect3DStateBlock9Impl_Release(LPDIRECT3DSTATEBLOCK9 iface
if
(
ref
==
0
)
{
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DStateBlock_Release
(
This
->
wineD3DStateBlock
);
IWineD3DStateBlock_Release
(
This
->
wineD3DStateBlock
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -140,7 +140,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateStateBlock(LPDIRECT3DDEVICE9EX iface,
FIXME
(
"(%p) Call to IWineD3DDevice_CreateStateBlock failed.
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppStateBlock
=
(
IDirect3DStateBlock9
*
)
object
;
TRACE
(
"(%p) : Created stateblock %p
\n
"
,
This
,
object
);
...
...
@@ -185,7 +185,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_EndStateBlock(LPDIRECT3DDEVICE9EX iface, I
object
->
lpVtbl
=
&
Direct3DStateBlock9_Vtbl
;
object
->
wineD3DStateBlock
=
wineD3DStateBlock
;
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppSB
=
(
IDirect3DStateBlock9
*
)
object
;
TRACE
(
"(%p)Returning %p %p
\n
"
,
This
,
*
ppSB
,
wineD3DStateBlock
);
...
...
dlls/d3d9/surface.c
View file @
3d96f97e
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DSurface9Impl_QueryInterface(LPDIRECT3DSURFACE9 if
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSurface9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DSurface9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_AddRef(LPDIRECT3DSURFACE9 iface) {
}
else
{
/* No container, handle our own refcounting */
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
if
(
ref
==
1
&&
This
->
parentDevice
)
I
Unknown
_AddRef
(
This
->
parentDevice
);
if
(
ref
==
1
&&
This
->
parentDevice
)
I
Direct3DDevice9Ex
_AddRef
(
This
->
parentDevice
);
TRACE
(
"(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
return
ref
;
...
...
@@ -76,7 +76,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_Release(LPDIRECT3DSURFACE9 iface) {
TRACE
(
"(%p) : ReleaseRef to %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
This
->
parentDevice
)
I
Unknown
_Release
(
This
->
parentDevice
);
if
(
This
->
parentDevice
)
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
if
(
!
This
->
isImplicit
)
{
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DSurface_Release
(
This
->
wineD3DSurface
);
...
...
dlls/d3d9/swapchain.c
View file @
3d96f97e
...
...
@@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DSwapChain9Impl_QueryInterface(LPDIRECT3DSWAPCHAIN
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSwapChain9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DSwapChain9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -48,7 +48,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_AddRef(LPDIRECT3DSWAPCHAIN9 iface) {
TRACE
(
"(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
if
(
ref
==
1
&&
This
->
parentDevice
)
I
Unknown
_AddRef
(
This
->
parentDevice
);
if
(
ref
==
1
&&
This
->
parentDevice
)
I
Direct3DDevice9Ex
_AddRef
(
This
->
parentDevice
);
return
ref
;
}
...
...
@@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_Release(LPDIRECT3DSWAPCHAIN9 iface)
TRACE
(
"(%p) : ReleaseRef to %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
This
->
parentDevice
)
I
Unknown
_Release
(
This
->
parentDevice
);
if
(
This
->
parentDevice
)
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
if
(
!
This
->
isImplicit
)
{
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DSwapChain_Destroy
(
This
->
wineD3DSwapChain
,
D3D9CB_DestroyRenderTarget
);
...
...
@@ -251,7 +251,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE
FIXME
(
"(%p) call to IWineD3DDevice_CreateSwapChain failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
pSwapChain
=
(
IDirect3DSwapChain9
*
)
object
;
TRACE
(
"(%p) : Created swapchain %p
\n
"
,
This
,
*
pSwapChain
);
...
...
dlls/d3d9/texture.c
View file @
3d96f97e
...
...
@@ -33,7 +33,7 @@ static HRESULT WINAPI IDirect3DTexture9Impl_QueryInterface(LPDIRECT3DTEXTURE9 if
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DTexture9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DTexture9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -62,7 +62,7 @@ static ULONG WINAPI IDirect3DTexture9Impl_Release(LPDIRECT3DTEXTURE9 iface) {
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DTexture_Destroy
(
This
->
wineD3DTexture
,
D3D9CB_DestroySurface
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -356,7 +356,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(LPDIRECT3DDEVICE9EX iface, U
FIXME
(
"(%p) call to IWineD3DDevice_CreateTexture failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppTexture
=
(
LPDIRECT3DTEXTURE9
)
object
;
TRACE
(
"(%p) Created Texture %p, %p
\n
"
,
This
,
object
,
object
->
wineD3DTexture
);
...
...
dlls/d3d9/vertexbuffer.c
View file @
3d96f97e
...
...
@@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DVertexBuffer9Impl_QueryInterface(LPDIRECT3DVERTEX
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexBuffer9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexBuffer9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -61,7 +61,7 @@ static ULONG WINAPI IDirect3DVertexBuffer9Impl_Release(LPDIRECT3DVERTEXBUFFER9 i
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DVertexBuffer_Release
(
This
->
wineD3DVertexBuffer
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -234,7 +234,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9EX iface
WARN
(
"(%p) call to IWineD3DDevice_CreateVertexBuffer failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
TRACE
(
"(%p) : Created vertex buffer %p
\n
"
,
This
,
object
);
*
ppVertexBuffer
=
(
LPDIRECT3DVERTEXBUFFER9
)
object
;
...
...
dlls/d3d9/vertexdeclaration.c
View file @
3d96f97e
...
...
@@ -187,7 +187,7 @@ static HRESULT WINAPI IDirect3DVertexDeclaration9Impl_QueryInterface(LPDIRECT3DV
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexDeclaration9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexDeclaration9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -204,7 +204,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_AddRef(LPDIRECT3DVERTEXDECLA
TRACE
(
"(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
if
(
ref
==
1
)
{
I
Unknown
_AddRef
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_AddRef
(
This
->
parentDevice
);
}
return
ref
;
...
...
@@ -236,7 +236,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL
if
(
!
This
->
convFVF
)
{
IDirect3DVertexDeclaration9Impl_Release
(
iface
);
}
I
Unknown
_Release
(
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
parentDevice
);
}
return
ref
;
}
...
...
@@ -374,7 +374,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9E
}
else
{
object
->
parentDevice
=
iface
;
*
ppDecl
=
(
LPDIRECT3DVERTEXDECLARATION9
)
object
;
I
Unknown
_AddRef
(
*
ppDecl
);
I
Direct3DVertexDeclaration9
_AddRef
(
*
ppDecl
);
TRACE
(
"(%p) : Created vertex declaration %p
\n
"
,
This
,
object
);
}
return
hr
;
...
...
dlls/d3d9/vertexshader.c
View file @
3d96f97e
...
...
@@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DVertexShader9Impl_QueryInterface(LPDIRECT3DVERTEX
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexShader9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexShader9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DVertexShader9Impl_Release(LPDIRECT3DVERTEXSHADER9 i
EnterCriticalSection
(
&
d3d9_cs
);
IWineD3DVertexShader_Release
(
This
->
wineD3DVertexShader
);
LeaveCriticalSection
(
&
d3d9_cs
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -135,7 +135,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexShader(LPDIRECT3DDEVICE9EX iface
FIXME
(
"Call to IWineD3DDevice_CreateVertexShader failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppShader
=
(
IDirect3DVertexShader9
*
)
object
;
TRACE
(
"(%p) : Created vertex shader %p
\n
"
,
This
,
object
);
...
...
dlls/d3d9/volume.c
View file @
3d96f97e
...
...
@@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 ifac
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolume9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVolume9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
dlls/d3d9/volumetexture.c
View file @
3d96f97e
...
...
@@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_QueryInterface(LPDIRECT3DVOLUM
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture9
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolumeTexture9
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVolumeTexture9
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DVolumeTexture9Impl_Release(LPDIRECT3DVOLUMETEXTURE9
if
(
ref
==
0
)
{
IWineD3DVolumeTexture_Destroy
(
This
->
wineD3DVolumeTexture
,
D3D9CB_DestroyVolume
);
I
Unknown
_Release
(
This
->
parentDevice
);
I
Direct3DDevice9Ex
_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -269,7 +269,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVolumeTexture(LPDIRECT3DDEVICE9EX if
FIXME
(
"(%p) call to IWineD3DDevice_CreateVolumeTexture failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DDevice9Ex
_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppVolumeTexture
=
(
LPDIRECT3DVOLUMETEXTURE9
)
object
;
TRACE
(
"(%p) : Created volume texture %p
\n
"
,
This
,
object
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment