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
9a795c52
Commit
9a795c52
authored
Mar 21, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Use the private store api for surfaces.
parent
9be18d5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
27 deletions
+3
-27
surface.c
dlls/d3d8/surface.c
+3
-27
No files found.
dlls/d3d8/surface.c
View file @
9a795c52
...
...
@@ -150,52 +150,28 @@ static HRESULT WINAPI d3d8_surface_SetPrivateData(IDirect3DSurface8 *iface, REFG
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
{
struct
d3d8_surface
*
surface
=
impl_from_IDirect3DSurface8
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
wined3d_mutex_lock
();
resource
=
wined3d_surface_get_resource
(
surface
->
wined3d_surface
);
hr
=
wined3d_resource_set_private_data
(
resource
,
guid
,
data
,
data_size
,
flags
);
wined3d_mutex_unlock
();
return
hr
;
return
d3d8_resource_set_private_data
(
&
surface
->
resource
,
guid
,
data
,
data_size
,
flags
);
}
static
HRESULT
WINAPI
d3d8_surface_GetPrivateData
(
IDirect3DSurface8
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
struct
d3d8_surface
*
surface
=
impl_from_IDirect3DSurface8
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
wined3d_mutex_lock
();
resource
=
wined3d_surface_get_resource
(
surface
->
wined3d_surface
);
hr
=
wined3d_resource_get_private_data
(
resource
,
guid
,
data
,
data_size
);
wined3d_mutex_unlock
();
return
hr
;
return
d3d8_resource_get_private_data
(
&
surface
->
resource
,
guid
,
data
,
data_size
);
}
static
HRESULT
WINAPI
d3d8_surface_FreePrivateData
(
IDirect3DSurface8
*
iface
,
REFGUID
guid
)
{
struct
d3d8_surface
*
surface
=
impl_from_IDirect3DSurface8
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
wined3d_mutex_lock
();
resource
=
wined3d_surface_get_resource
(
surface
->
wined3d_surface
);
hr
=
wined3d_resource_free_private_data
(
resource
,
guid
);
wined3d_mutex_unlock
();
return
hr
;
return
d3d8_resource_free_private_data
(
&
surface
->
resource
,
guid
);
}
static
HRESULT
WINAPI
d3d8_surface_GetContainer
(
IDirect3DSurface8
*
iface
,
REFIID
riid
,
void
**
container
)
...
...
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