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
d7768739
Commit
d7768739
authored
Jun 15, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: COM cleanup for the IDirect3DVertexBuffer7 iface.
parent
60223057
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
46 deletions
+41
-46
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-2
device.c
dlls/ddraw/device.c
+3
-2
vertexbuffer.c
dlls/ddraw/vertexbuffer.c
+36
-41
No files found.
dlls/ddraw/ddraw.c
View file @
d7768739
...
...
@@ -4956,7 +4956,7 @@ static HRESULT WINAPI d3d7_CreateVertexBuffer(IDirect3D7 *iface, D3DVERTEXBUFFER
if
(
hr
==
D3D_OK
)
{
TRACE
(
"Created vertex buffer %p.
\n
"
,
object
);
*
vertex_buffer
=
(
IDirect3DVertexBuffer7
*
)
object
;
*
vertex_buffer
=
&
object
->
IDirect3DVertexBuffer7_iface
;
}
else
WARN
(
"Failed to create vertex buffer, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/ddraw_private.h
View file @
d7768739
...
...
@@ -519,8 +519,7 @@ HRESULT d3d_execute_buffer_execute(IDirect3DExecuteBufferImpl *execute_buffer,
*****************************************************************************/
struct
IDirect3DVertexBufferImpl
{
/*** IUnknown Methods ***/
const
IDirect3DVertexBuffer7Vtbl
*
lpVtbl
;
IDirect3DVertexBuffer7
IDirect3DVertexBuffer7_iface
;
IDirect3DVertexBuffer
IDirect3DVertexBuffer_iface
;
LONG
ref
;
...
...
dlls/ddraw/device.c
View file @
d7768739
...
...
@@ -4132,7 +4132,7 @@ static HRESULT WINAPI IDirect3DDeviceImpl_3_DrawPrimitiveVB(IDirect3DDevice3 *if
iface
,
PrimitiveType
,
D3DVertexBuf
,
StartVertex
,
NumVertices
,
Flags
);
return
IDirect3DDevice7_DrawPrimitiveVB
((
IDirect3DDevice7
*
)
device_from_device3
(
iface
),
PrimitiveType
,
(
IDirect3DVertexBuffer7
*
)
vb
,
StartVertex
,
NumVertices
,
Flags
);
PrimitiveType
,
&
vb
->
IDirect3DVertexBuffer7_iface
,
StartVertex
,
NumVertices
,
Flags
);
}
...
...
@@ -4294,7 +4294,8 @@ static HRESULT WINAPI IDirect3DDeviceImpl_3_DrawIndexedPrimitiveVB(IDirect3DDevi
iface
,
PrimitiveType
,
D3DVertexBuf
,
Indices
,
IndexCount
,
Flags
);
return
IDirect3DDevice7_DrawIndexedPrimitiveVB
((
IDirect3DDevice7
*
)
device_from_device3
(
iface
),
PrimitiveType
,
(
IDirect3DVertexBuffer7
*
)
vb
,
0
,
IndexCount
,
Indices
,
IndexCount
,
Flags
);
PrimitiveType
,
&
vb
->
IDirect3DVertexBuffer7_iface
,
0
,
IndexCount
,
Indices
,
IndexCount
,
Flags
);
}
/*****************************************************************************
...
...
dlls/ddraw/vertexbuffer.c
View file @
d7768739
This diff is collapsed.
Click to expand it.
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