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
c1eeeec2
Commit
c1eeeec2
authored
Jul 05, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Use unsafe_impl_from_IDirect3DIndexBuffer8 for an app provided iface.
parent
d615be8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
buffer.c
dlls/d3d8/buffer.c
+10
-0
d3d8_private.h
dlls/d3d8/d3d8_private.h
+1
-0
device.c
dlls/d3d8/device.c
+1
-1
No files found.
dlls/d3d8/buffer.c
View file @
c1eeeec2
...
...
@@ -17,6 +17,7 @@
*/
#include "config.h"
#include <assert.h>
#include "d3d8_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
...
...
@@ -571,3 +572,12 @@ HRESULT indexbuffer_init(IDirect3DIndexBuffer8Impl *buffer, IDirect3DDevice8Impl
return
D3D_OK
;
}
IDirect3DIndexBuffer8Impl
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d8_indexbuffer_vtbl
);
return
impl_from_IDirect3DIndexBuffer8
(
iface
);
}
dlls/d3d8/d3d8_private.h
View file @
c1eeeec2
...
...
@@ -298,6 +298,7 @@ struct IDirect3DIndexBuffer8Impl
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
IDirect3DDevice8Impl
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer8Impl
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DBaseTexture8 */
...
...
dlls/d3d8/device.c
View file @
c1eeeec2
...
...
@@ -2367,8 +2367,8 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetIndices(IDirect3DDevice8 *iface,
IDirect3DIndexBuffer8
*
pIndexData
,
UINT
baseVertexIndex
)
{
IDirect3DDevice8Impl
*
This
=
impl_from_IDirect3DDevice8
(
iface
);
IDirect3DIndexBuffer8Impl
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer8
(
pIndexData
);
HRESULT
hr
;
IDirect3DIndexBuffer8Impl
*
ib
=
(
IDirect3DIndexBuffer8Impl
*
)
pIndexData
;
TRACE
(
"iface %p, buffer %p, base_vertex_idx %u.
\n
"
,
iface
,
pIndexData
,
baseVertexIndex
);
...
...
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