Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
17542e9f
Commit
17542e9f
authored
Mar 09, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Invalidate all sampler slots to which a texture is bound in texture_resource_unload().
parent
fecb3b60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
texture.c
dlls/wined3d/texture.c
+8
-2
No files found.
dlls/wined3d/texture.c
View file @
17542e9f
...
...
@@ -3509,6 +3509,7 @@ static void texture_resource_unload(struct wined3d_resource *resource)
{
struct
wined3d_texture
*
texture
=
texture_from_resource
(
resource
);
struct
wined3d_device
*
device
=
resource
->
device
;
const
struct
wined3d_state
*
state
=
&
device
->
cs
->
state
;
unsigned
int
location
=
resource
->
map_binding
;
struct
wined3d_context
*
context
;
unsigned
int
sub_count
,
i
;
...
...
@@ -3553,8 +3554,13 @@ static void texture_resource_unload(struct wined3d_resource *resource)
context_release
(
context
);
wined3d_texture_force_reload
(
texture
);
if
(
texture
->
resource
.
bind_count
)
device_invalidate_state
(
device
,
STATE_SAMPLER
(
texture
->
sampler
));
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
state
->
textures
);
++
i
)
{
if
(
state
->
textures
[
i
]
==
texture
)
device_invalidate_state
(
device
,
STATE_SAMPLER
(
i
));
}
wined3d_texture_set_dirty
(
texture
);
resource_unload
(
&
texture
->
resource
);
...
...
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