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
38e2f4ca
Commit
38e2f4ca
authored
Mar 18, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use a separate device for depth_buffer2_test().
parent
421f925d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
visual.c
dlls/d3d9/tests/visual.c
+21
-2
No files found.
dlls/d3d9/tests/visual.c
View file @
38e2f4ca
...
...
@@ -11869,7 +11869,7 @@ static void depth_buffer_test(IDirect3DDevice9 *device)
/* Test that partial depth copies work the way they're supposed to. The clear
* on rt2 only needs a partial copy of the onscreen depth/stencil buffer, and
* the following draw should only copy back the part that was modified. */
static
void
depth_buffer2_test
(
IDirect3DDevice9
*
device
)
static
void
depth_buffer2_test
(
void
)
{
static
const
struct
vertex
quad
[]
=
{
...
...
@@ -11880,11 +11880,25 @@ static void depth_buffer2_test(IDirect3DDevice9 *device)
};
IDirect3DSurface9
*
backbuffer
,
*
rt1
,
*
rt2
;
IDirect3DDevice9
*
device
;
unsigned
int
i
,
j
;
D3DVIEWPORT9
vp
;
IDirect3D9
*
d3d
;
D3DCOLOR
color
;
ULONG
refcount
;
HWND
window
;
HRESULT
hr
;
window
=
CreateWindowA
(
"static"
,
"d3d9_test"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
d3d
=
Direct3DCreate9
(
D3D_SDK_VERSION
);
ok
(
!!
d3d
,
"Failed to create a D3D object.
\n
"
);
if
(
!
(
device
=
create_device
(
d3d
,
window
,
window
,
TRUE
)))
{
skip
(
"Failed to create a D3D device, skipping tests.
\n
"
);
goto
done
;
}
vp
.
X
=
0
;
vp
.
Y
=
0
;
vp
.
Width
=
640
;
...
...
@@ -11961,6 +11975,11 @@ static void depth_buffer2_test(IDirect3DDevice9 *device)
IDirect3DSurface9_Release
(
backbuffer
);
IDirect3DSurface9_Release
(
rt2
);
IDirect3DSurface9_Release
(
rt1
);
refcount
=
IDirect3DDevice9_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
done:
IDirect3D9_Release
(
d3d
);
DestroyWindow
(
window
);
}
static
void
depth_blit_test
(
void
)
...
...
@@ -15651,11 +15670,11 @@ START_TEST(visual)
alphareplicate_test
(
device_ptr
);
dp3_alpha_test
(
device_ptr
);
depth_buffer_test
(
device_ptr
);
depth_buffer2_test
(
device_ptr
);
cleanup_device
(
device_ptr
);
device_ptr
=
NULL
;
depth_buffer2_test
();
depth_blit_test
();
intz_test
();
shadow_test
();
...
...
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