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
99cee90c
Commit
99cee90c
authored
Jul 30, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Introduce a d3d8_texture_preload() helper.
parent
a72e2613
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
texture.c
dlls/d3d8/texture.c
+10
-9
No files found.
dlls/d3d8/texture.c
View file @
99cee90c
...
...
@@ -20,6 +20,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
static
void
d3d8_texture_preload
(
struct
d3d8_texture
*
texture
)
{
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
}
static
inline
struct
d3d8_texture
*
impl_from_IDirect3DTexture8
(
IDirect3DTexture8
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d8_texture
,
IDirect3DBaseTexture8_iface
);
...
...
@@ -185,9 +192,7 @@ static void WINAPI d3d8_texture_2d_PreLoad(IDirect3DTexture8 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d8_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d8_texture_2d_GetType
(
IDirect3DTexture8
*
iface
)
...
...
@@ -526,9 +531,7 @@ static void WINAPI d3d8_texture_cube_PreLoad(IDirect3DCubeTexture8 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d8_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d8_texture_cube_GetType
(
IDirect3DCubeTexture8
*
iface
)
...
...
@@ -877,9 +880,7 @@ static void WINAPI d3d8_texture_3d_PreLoad(IDirect3DVolumeTexture8 *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
wined3d_resource_preload
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
));
wined3d_mutex_unlock
();
d3d8_texture_preload
(
texture
);
}
static
D3DRESOURCETYPE
WINAPI
d3d8_texture_3d_GetType
(
IDirect3DVolumeTexture8
*
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