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
df70d099
Commit
df70d099
authored
Oct 20, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Factor out a mark_managed_resource_dirty() helper.
parent
e4cd9366
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
device.c
dlls/wined3d/device.c
+16
-11
No files found.
dlls/wined3d/device.c
View file @
df70d099
...
...
@@ -5509,6 +5509,21 @@ BOOL CDECL wined3d_device_show_cursor(struct wined3d_device *device, BOOL show)
return
oldVisible
;
}
static
void
mark_managed_resource_dirty
(
struct
wined3d_resource
*
resource
)
{
if
(
resource
->
type
!=
WINED3D_RTYPE_BUFFER
)
{
struct
wined3d_texture
*
texture
=
texture_from_resource
(
resource
);
unsigned
int
i
;
if
(
texture
->
dirty_regions
)
{
for
(
i
=
0
;
i
<
texture
->
layer_count
;
++
i
)
wined3d_texture_add_dirty_region
(
texture
,
i
,
NULL
);
}
}
}
void
CDECL
wined3d_device_evict_managed_resources
(
struct
wined3d_device
*
device
)
{
struct
wined3d_resource
*
resource
,
*
cursor
;
...
...
@@ -5527,17 +5542,7 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
wined3d_cs_emit_unload_resource
(
device
->
cs
,
resource
);
}
if
(
resource
->
type
!=
WINED3D_RTYPE_BUFFER
)
{
struct
wined3d_texture
*
texture
=
texture_from_resource
(
resource
);
unsigned
int
i
;
if
(
texture
->
dirty_regions
)
{
for
(
i
=
0
;
i
<
texture
->
layer_count
;
++
i
)
wined3d_texture_add_dirty_region
(
texture
,
i
,
NULL
);
}
}
mark_managed_resource_dirty
(
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