Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fc134207
Commit
fc134207
authored
Apr 02, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx: VertexBuffer should keep reference to the parent device object.
parent
605574be
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
+12
-0
d3d8_private.h
dlls/d3d8/d3d8_private.h
+3
-0
device.c
dlls/d3d8/device.c
+2
-0
vertexbuffer.c
dlls/d3d8/vertexbuffer.c
+1
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+3
-0
vertexbuffer.c
dlls/d3d9/vertexbuffer.c
+3
-0
No files found.
dlls/d3d8/d3d8_private.h
View file @
fc134207
...
...
@@ -295,6 +295,9 @@ struct IDirect3DVertexBuffer8Impl
/* IDirect3DResource8 fields */
IWineD3DVertexBuffer
*
wineD3DVertexBuffer
;
/* Parent reference */
LPDIRECT3DDEVICE8
parentDevice
;
};
/* --------------------- */
...
...
dlls/d3d8/device.c
View file @
fc134207
...
...
@@ -418,6 +418,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexBuffer(LPDIRECT3DDEVICE8 iface,
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
ppVertexBuffer
=
NULL
;
}
else
{
IUnknown_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppVertexBuffer
=
(
LPDIRECT3DVERTEXBUFFER8
)
object
;
}
return
hrc
;
...
...
dlls/d3d8/vertexbuffer.c
View file @
fc134207
...
...
@@ -57,6 +57,7 @@ ULONG WINAPI IDirect3DVertexBuffer8Impl_Release(LPDIRECT3DVERTEXBUFFER8 iface) {
if
(
ref
==
0
)
{
IWineD3DVertexBuffer_Release
(
This
->
wineD3DVertexBuffer
);
IUnknown_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/d3d9/d3d9_private.h
View file @
fc134207
...
...
@@ -353,6 +353,9 @@ typedef struct IDirect3DVertexBuffer9Impl
/* IDirect3DResource9 fields */
IWineD3DVertexBuffer
*
wineD3DVertexBuffer
;
/* Parent reference */
LPDIRECT3DDEVICE9
parentDevice
;
}
IDirect3DVertexBuffer9Impl
;
/* --------------------- */
...
...
dlls/d3d9/vertexbuffer.c
View file @
fc134207
...
...
@@ -58,6 +58,7 @@ ULONG WINAPI IDirect3DVertexBuffer9Impl_Release(LPDIRECT3DVERTEXBUFFER9 iface) {
if
(
ref
==
0
)
{
IWineD3DVertexBuffer_Release
(
This
->
wineD3DVertexBuffer
);
IUnknown_Release
(
This
->
parentDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -180,6 +181,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9 iface,
FIXME
(
"(%p) call to IWineD3DDevice_CreateVertexBuffer failed
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
IUnknown_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
TRACE
(
"(%p) : Created vertex buffer %p
\n
"
,
This
,
object
);
*
ppVertexBuffer
=
(
LPDIRECT3DVERTEXBUFFER9
)
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