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
af639777
Commit
af639777
authored
Mar 14, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use a separate device for zenable_test().
parent
55e66926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
visual.c
dlls/d3d9/tests/visual.c
+22
-2
No files found.
dlls/d3d9/tests/visual.c
View file @
af639777
...
...
@@ -14333,7 +14333,7 @@ static void resz_test(void)
IDirect3D9_Release
(
d3d
);
}
static
void
zenable_test
(
IDirect3DDevice9
*
device
)
static
void
zenable_test
(
void
)
{
static
const
struct
{
...
...
@@ -14347,12 +14347,26 @@ static void zenable_test(IDirect3DDevice9 *device)
{{
640
.
0
f
,
480
.
0
f
,
1
.
5
f
,
1
.
0
f
},
0xff00ff00
},
{{
640
.
0
f
,
0
.
0
f
,
1
.
5
f
,
1
.
0
f
},
0xff00ff00
},
};
IDirect3DDevice9
*
device
;
IDirect3D9
*
d3d
;
D3DCOLOR
color
;
ULONG
refcount
;
D3DCAPS9
caps
;
HWND
window
;
HRESULT
hr
;
UINT
x
,
y
;
UINT
i
,
j
;
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
;
}
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_ZENABLE
,
D3DZB_FALSE
);
ok
(
SUCCEEDED
(
hr
),
"Failed to disable z-buffering, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetFVF
(
device
,
D3DFVF_XYZRHW
|
D3DFVF_DIFFUSE
);
...
...
@@ -14462,6 +14476,12 @@ static void zenable_test(IDirect3DDevice9 *device)
IDirect3DPixelShader9_Release
(
ps
);
IDirect3DVertexShader9_Release
(
vs
);
}
refcount
=
IDirect3DDevice9_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
done:
IDirect3D9_Release
(
d3d
);
DestroyWindow
(
window
);
}
static
void
fog_special_test
(
void
)
...
...
@@ -15543,11 +15563,11 @@ START_TEST(visual)
srgbwrite_format_test
(
device_ptr
);
update_surface_test
(
device_ptr
);
multisample_get_rtdata_test
(
device_ptr
);
zenable_test
(
device_ptr
);
cleanup_device
(
device_ptr
);
device_ptr
=
NULL
;
zenable_test
();
fog_special_test
();
volume_srgb_test
();
volume_dxt5_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