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
9b62f5e5
Commit
9b62f5e5
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: Add a dirty rect to managed textures when resetting.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53798
parent
df70d099
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
visual.c
dlls/d3d8/tests/visual.c
+1
-1
visual.c
dlls/d3d9/tests/visual.c
+1
-1
device.c
dlls/wined3d/device.c
+3
-0
No files found.
dlls/d3d8/tests/visual.c
View file @
9b62f5e5
...
...
@@ -12119,7 +12119,7 @@ static void test_managed_reset(void)
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
draw_textured_quad
(
&
context
,
texture
);
check_rt_color
_todo
(
context
.
backbuffer
,
0x0000ff00
);
check_rt_color
(
context
.
backbuffer
,
0x0000ff00
);
IDirect3DTexture8_Release
(
texture
);
release_test_context
(
&
context
);
...
...
dlls/d3d9/tests/visual.c
View file @
9b62f5e5
...
...
@@ -27863,7 +27863,7 @@ static void test_managed_reset(void)
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
draw_textured_quad
(
&
context
,
texture
);
check_rt_color
_todo
(
context
.
backbuffer
,
0x0000ff00
);
check_rt_color
(
context
.
backbuffer
,
0x0000ff00
);
IDirect3DTexture9_Release
(
texture
);
release_test_context
(
&
context
);
dlls/wined3d/device.c
View file @
9b62f5e5
...
...
@@ -5829,6 +5829,9 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
{
TRACE
(
"Unloading resource %p.
\n
"
,
resource
);
wined3d_cs_emit_unload_resource
(
device
->
cs
,
resource
);
if
(
resource
->
usage
&
WINED3DUSAGE_MANAGED
)
mark_managed_resource_dirty
(
resource
);
}
device
->
adapter
->
adapter_ops
->
adapter_uninit_3d
(
device
);
...
...
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