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
7531acd3
Commit
7531acd3
authored
Mar 10, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_rasterizer_state_SetPrivateData().
parent
49a1c60c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-0
state.c
dlls/d3d10core/state.c
+7
-2
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
7531acd3
...
@@ -280,6 +280,7 @@ struct d3d10_rasterizer_state
...
@@ -280,6 +280,7 @@ struct d3d10_rasterizer_state
ID3D10RasterizerState
ID3D10RasterizerState_iface
;
ID3D10RasterizerState
ID3D10RasterizerState_iface
;
LONG
refcount
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
D3D10_RASTERIZER_DESC
desc
;
D3D10_RASTERIZER_DESC
desc
;
struct
wine_rb_entry
entry
;
struct
wine_rb_entry
entry
;
ID3D10Device1
*
device
;
ID3D10Device1
*
device
;
...
...
dlls/d3d10core/state.c
View file @
7531acd3
...
@@ -393,6 +393,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rasterizer_state_Release(ID3D10RasterizerSt
...
@@ -393,6 +393,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rasterizer_state_Release(ID3D10RasterizerSt
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
state
->
device
);
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
state
->
device
);
wine_rb_remove
(
&
device
->
rasterizer_states
,
&
state
->
desc
);
wine_rb_remove
(
&
device
->
rasterizer_states
,
&
state
->
desc
);
ID3D10Device1_Release
(
state
->
device
);
ID3D10Device1_Release
(
state
->
device
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
state
);
HeapFree
(
GetProcessHeap
(),
0
,
state
);
}
}
...
@@ -423,10 +424,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_GetPrivateData(ID3D10Ras
...
@@ -423,10 +424,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_GetPrivateData(ID3D10Ras
static
HRESULT
STDMETHODCALLTYPE
d3d10_rasterizer_state_SetPrivateData
(
ID3D10RasterizerState
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_rasterizer_state_SetPrivateData
(
ID3D10RasterizerState
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
struct
d3d10_rasterizer_state
*
state
=
impl_from_ID3D10RasterizerState
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
E_NOTIMPL
;
return
d3d10_set_private_data
(
&
state
->
private_store
,
guid
,
data_size
,
data
)
;
}
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_rasterizer_state_SetPrivateDataInterface
(
ID3D10RasterizerState
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_rasterizer_state_SetPrivateDataInterface
(
ID3D10RasterizerState
*
iface
,
...
@@ -469,11 +472,13 @@ HRESULT d3d10_rasterizer_state_init(struct d3d10_rasterizer_state *state, struct
...
@@ -469,11 +472,13 @@ HRESULT d3d10_rasterizer_state_init(struct d3d10_rasterizer_state *state, struct
{
{
state
->
ID3D10RasterizerState_iface
.
lpVtbl
=
&
d3d10_rasterizer_state_vtbl
;
state
->
ID3D10RasterizerState_iface
.
lpVtbl
=
&
d3d10_rasterizer_state_vtbl
;
state
->
refcount
=
1
;
state
->
refcount
=
1
;
wined3d_private_store_init
(
&
state
->
private_store
);
state
->
desc
=
*
desc
;
state
->
desc
=
*
desc
;
if
(
wine_rb_put
(
&
device
->
rasterizer_states
,
desc
,
&
state
->
entry
)
==
-
1
)
if
(
wine_rb_put
(
&
device
->
rasterizer_states
,
desc
,
&
state
->
entry
)
==
-
1
)
{
{
ERR
(
"Failed to insert rasterizer state entry.
\n
"
);
ERR
(
"Failed to insert rasterizer state entry.
\n
"
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
return
E_FAIL
;
return
E_FAIL
;
}
}
...
...
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