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
4a25828c
Commit
4a25828c
authored
Apr 11, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: VertexDeclaration and VertexShader should keep reference to the parent device object.
parent
99136998
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+4
-0
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+3
-0
vertexshader.c
dlls/d3d9/vertexshader.c
+3
-0
No files found.
dlls/d3d9/d3d9_private.h
View file @
4a25828c
...
...
@@ -541,6 +541,8 @@ typedef struct IDirect3DVertexDeclaration9Impl {
/* IDirect3DVertexDeclaration9 fields */
IWineD3DVertexDeclaration
*
wineD3DVertexDeclaration
;
/* Parent reference */
LPDIRECT3DDEVICE9
parentDevice
;
}
IDirect3DVertexDeclaration9Impl
;
/* ---------------------- */
...
...
@@ -563,6 +565,8 @@ typedef struct IDirect3DVertexShader9Impl {
/* IDirect3DVertexShader9 fields */
IWineD3DVertexShader
*
wineD3DVertexShader
;
/* Parent reference */
LPDIRECT3DDEVICE9
parentDevice
;
}
IDirect3DVertexShader9Impl
;
/* --------------------- */
...
...
dlls/d3d9/vertexdeclaration.c
View file @
4a25828c
...
...
@@ -56,6 +56,7 @@ ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECLARATION
if
(
ref
==
0
)
{
IWineD3DVertexDeclaration_Release
(
This
->
wineD3DVertexDeclaration
);
IUnknown_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -129,6 +130,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9
FIXME
(
"(%p) call to IWineD3DDevice_CreateVertexDeclaration failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
IUnknown_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppDecl
=
(
LPDIRECT3DVERTEXDECLARATION9
)
object
;
TRACE
(
"(%p) : Created vertex declatanio %p
\n
"
,
This
,
object
);
}
...
...
dlls/d3d9/vertexshader.c
View file @
4a25828c
...
...
@@ -56,6 +56,7 @@ ULONG WINAPI IDirect3DVertexShader9Impl_Release(LPDIRECT3DVERTEXSHADER9 iface) {
if
(
ref
==
0
)
{
IWineD3DVertexShader_Release
(
This
->
wineD3DVertexShader
);
IUnknown_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -122,6 +123,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexShader(LPDIRECT3DDEVICE9 iface,
FIXME
(
"Call to IWineD3DDevice_CreateVertexShader failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
IUnknown_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppShader
=
(
IDirect3DVertexShader9
*
)
object
;
TRACE
(
"(%p) : Created vertex shader %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