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
d5bb5705
Commit
d5bb5705
authored
Jul 30, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Introduce a d3d9_texture_preload() helper.
parent
46c9897b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
texture.c
dlls/d3d9/texture.c
+10
-9
No files found.
dlls/d3d9/texture.c
View file @
d5bb5705
...
...
@@ -22,6 +22,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d9
);
static
void
d3d9_texture_preload
(
struct
d3d9_texture
*
texture
)
{
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
}
static
inline
struct
d3d9_texture
*
impl_from_IDirect3DTexture9
(
IDirect3DTexture9
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d9_texture
,
IDirect3DBaseTexture9_iface
);
...
...
@@ -246,9 +253,7 @@ static void WINAPI d3d9_texture_2d_PreLoad(IDirect3DTexture9 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d9_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d9_texture_2d_GetType
(
IDirect3DTexture9
*
iface
)
...
...
@@ -644,9 +649,7 @@ static void WINAPI d3d9_texture_cube_PreLoad(IDirect3DCubeTexture9 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d9_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d9_texture_cube_GetType
(
IDirect3DCubeTexture9
*
iface
)
...
...
@@ -1062,9 +1065,7 @@ static void WINAPI d3d9_texture_3d_PreLoad(IDirect3DVolumeTexture9 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d9_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d9_texture_3d_GetType
(
IDirect3DVolumeTexture9
*
iface
)
...
...
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