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
875d6900
Commit
875d6900
authored
Jul 05, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use unsafe_impl_from_IDirect3DIndexBuffer9 for an app provided iface.
parent
a2e0f0f4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
buffer.c
dlls/d3d9/buffer.c
+10
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+1
-0
device.c
dlls/d3d9/device.c
+1
-1
No files found.
dlls/d3d9/buffer.c
View file @
875d6900
...
...
@@ -19,6 +19,7 @@
*/
#include "config.h"
#include <assert.h>
#include "d3d9_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d9
);
...
...
@@ -573,3 +574,12 @@ HRESULT indexbuffer_init(IDirect3DIndexBuffer9Impl *buffer, IDirect3DDevice9Impl
return
D3D_OK
;
}
IDirect3DIndexBuffer9Impl
*
unsafe_impl_from_IDirect3DIndexBuffer9
(
IDirect3DIndexBuffer9
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d9_indexbuffer_vtbl
);
return
impl_from_IDirect3DIndexBuffer9
(
iface
);
}
dlls/d3d9/d3d9_private.h
View file @
875d6900
...
...
@@ -283,6 +283,7 @@ typedef struct IDirect3DIndexBuffer9Impl
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer9Impl
*
buffer
,
IDirect3DDevice9Impl
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer9Impl
*
unsafe_impl_from_IDirect3DIndexBuffer9
(
IDirect3DIndexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DBaseTexture9 */
...
...
dlls/d3d9/device.c
View file @
875d6900
...
...
@@ -2528,8 +2528,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetIndices(IDirect3DDevice9Ex *iface,
IDirect3DIndexBuffer9
*
pIndexData
)
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DIndexBuffer9Impl
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer9
(
pIndexData
);
HRESULT
hr
;
IDirect3DIndexBuffer9Impl
*
ib
=
(
IDirect3DIndexBuffer9Impl
*
)
pIndexData
;
TRACE
(
"iface %p, buffer %p.
\n
"
,
iface
,
pIndexData
);
...
...
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