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
3178e909
Commit
3178e909
authored
Jul 30, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a dirty region to the destination texture in…
wined3d: Add a dirty region to the destination texture in wined3d_device_context_blt() if applicable.
parent
fdd8c074
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
visual.c
dlls/d3d8/tests/visual.c
+1
-1
texture.c
dlls/wined3d/texture.c
+3
-0
No files found.
dlls/d3d8/tests/visual.c
View file @
3178e909
...
...
@@ -5726,7 +5726,7 @@ static void add_dirty_rect_test(void)
ok
(
hr
==
S_OK
,
"Failed to update texture, hr %#lx.
\n
"
,
hr
);
add_dirty_rect_test_draw
(
device
);
color
=
getPixelColor
(
device
,
320
,
240
);
todo_wine
ok
(
color_match
(
color
,
0x00ff00ff
,
1
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok
(
color_match
(
color
,
0x00ff00ff
,
1
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
/* Tests with managed textures. */
fill_surface
(
surface_managed0
,
0x00ff0000
,
0
);
...
...
dlls/wined3d/texture.c
View file @
3178e909
...
...
@@ -4171,6 +4171,9 @@ HRESULT CDECL wined3d_device_context_blt(struct wined3d_device_context *context,
wined3d_device_context_emit_blt_sub_resource
(
&
dst_texture
->
resource
.
device
->
cs
->
c
,
&
dst_texture
->
resource
,
dst_sub_resource_idx
,
&
dst_box
,
&
src_texture
->
resource
,
src_sub_resource_idx
,
&
src_box
,
flags
,
fx
,
filter
);
if
(
dst_texture
->
dirty_regions
)
wined3d_texture_add_dirty_region
(
dst_texture
,
dst_sub_resource_idx
,
&
dst_box
);
return
WINED3D_OK
;
}
...
...
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