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
6341389f
Commit
6341389f
authored
May 31, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Get rid of IDirect3DIndexBuffer9Impl.
parent
503b1639
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
buffer.c
dlls/d3d9/buffer.c
+0
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+7
-14
device.c
dlls/d3d9/device.c
+4
-4
No files found.
dlls/d3d9/buffer.c
View file @
6341389f
This diff is collapsed.
Click to expand it.
dlls/d3d9/d3d9_private.h
View file @
6341389f
...
...
@@ -216,25 +216,18 @@ HRESULT vertexbuffer_init(struct d3d9_vertexbuffer *buffer, struct d3d9_device *
UINT
size
,
UINT
usage
,
DWORD
fvf
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
struct
d3d9_vertexbuffer
*
unsafe_impl_from_IDirect3DVertexBuffer9
(
IDirect3DVertexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DIndexBuffer9 */
/* --------------------- */
/*****************************************************************************
* IDirect3DIndexBuffer9 implementation structure
*/
typedef
struct
IDirect3DIndexBuffer9Impl
struct
d3d9_indexbuffer
{
IDirect3DIndexBuffer9
IDirect3DIndexBuffer9_iface
;
LONG
ref
;
struct
wined3d_buffer
*
wine
D3DIndexB
uffer
;
IDirect3DDevice9Ex
*
parent
D
evice
;
LONG
ref
count
;
struct
wined3d_buffer
*
wine
d3d_b
uffer
;
IDirect3DDevice9Ex
*
parent
_d
evice
;
enum
wined3d_format_id
format
;
}
IDirect3DIndexBuffer9Impl
;
};
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer9Impl
*
buffer
,
struct
d3d9_device
*
device
,
HRESULT
indexbuffer_init
(
struct
d3d9_indexbuffer
*
buffer
,
struct
d3d9_device
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer9Impl
*
unsafe_impl_from_IDirect3DIndexBuffer9
(
IDirect3DIndexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d9_indexbuffer
*
unsafe_impl_from_IDirect3DIndexBuffer9
(
IDirect3DIndexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d9_texture
{
...
...
dlls/d3d9/device.c
View file @
6341389f
...
...
@@ -831,7 +831,7 @@ static HRESULT WINAPI d3d9_device_CreateIndexBuffer(IDirect3DDevice9Ex *iface, U
HANDLE
*
shared_handle
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DIndexBuffer9Impl
*
object
;
struct
d3d9_indexbuffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, size %u, usage %#x, format %#x, pool %#x, buffer %p, shared_handle %p.
\n
"
,
...
...
@@ -2497,14 +2497,14 @@ static HRESULT WINAPI d3d9_device_GetStreamSourceFreq(IDirect3DDevice9Ex *iface,
static
HRESULT
WINAPI
d3d9_device_SetIndices
(
IDirect3DDevice9Ex
*
iface
,
IDirect3DIndexBuffer9
*
buffer
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DIndexBuffer9Impl
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer9
(
buffer
);
struct
d3d9_indexbuffer
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer9
(
buffer
);
HRESULT
hr
;
TRACE
(
"iface %p, buffer %p.
\n
"
,
iface
,
buffer
);
wined3d_mutex_lock
();
hr
=
wined3d_device_set_index_buffer
(
device
->
wined3d_device
,
ib
?
ib
->
wine
D3DIndexB
uffer
:
NULL
,
ib
?
ib
->
wine
d3d_b
uffer
:
NULL
,
ib
?
ib
->
format
:
WINED3DFMT_UNKNOWN
);
wined3d_mutex_unlock
();
...
...
@@ -2515,7 +2515,7 @@ static HRESULT WINAPI d3d9_device_GetIndices(IDirect3DDevice9Ex *iface, IDirect3
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
struct
wined3d_buffer
*
retIndexData
=
NULL
;
IDirect3DIndexBuffer9Impl
*
buffer_impl
;
struct
d3d9_indexbuffer
*
buffer_impl
;
HRESULT
hr
;
TRACE
(
"iface %p, buffer %p.
\n
"
,
iface
,
buffer
);
...
...
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