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
a6e515af
Commit
a6e515af
authored
Jun 02, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Jun 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Keep swapchain while its backbuffer is in use.
parent
a2c6b25e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
stateblock.c
dlls/d3d9/tests/stateblock.c
+4
-1
No files found.
dlls/d3d9/tests/stateblock.c
View file @
a6e515af
...
...
@@ -255,6 +255,7 @@ static void execute_test_chain(
typedef
struct
event_data
{
IDirect3DStateBlock9
*
stateblock
;
IDirect3DSurface9
*
original_render_target
;
IDirect3DSwapChain9
*
new_swap_chain
;
}
event_data
;
static
int
switch_render_target
(
...
...
@@ -293,7 +294,7 @@ static int switch_render_target(
if
(
hret
!=
D3D_OK
)
goto
error
;
IUnknown_Release
(
backbuffer
);
IUnknown_Release
(
swapchain
)
;
edata
->
new_swap_chain
=
swapchain
;
return
EVENT_OK
;
error:
...
...
@@ -318,6 +319,8 @@ static int revert_render_target(
}
IUnknown_Release
(
edata
->
original_render_target
);
IUnknown_Release
(
edata
->
new_swap_chain
);
return
EVENT_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