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
6486a79e
Commit
6486a79e
authored
Oct 06, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Do not rely on CreateVertexShader failing.
parent
700c602e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
visual.c
dlls/d3d9/tests/visual.c
+7
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
6486a79e
...
...
@@ -1356,6 +1356,7 @@ static void z_range_test(IDirect3DDevice9 *device)
DWORD
color
;
IDirect3DVertexShader9
*
shader
;
IDirect3DVertexDeclaration9
*
decl
;
D3DCAPS9
caps
;
const
DWORD
shader_code
[]
=
{
0xfffe0101
,
/* vs_1_1 */
0x0000001f
,
0x80000000
,
0x900f0000
,
/* dcl_position v0 */
...
...
@@ -1453,12 +1454,15 @@ static void z_range_test(IDirect3DDevice9 *device)
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
/* Test the shader path */
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
shader_code
,
&
shader
);
if
(
FAILED
(
hr
))
{
skip
(
"
Can't create test vertex shader, most likely
shaders not supported
\n
"
);
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
if
(
caps
.
VertexShaderVersion
<
D3DVS_VERSION
(
1
,
1
))
{
skip
(
"
Vertex
shaders not supported
\n
"
);
goto
out
;
}
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
shader_code
,
&
shader
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_CreateVertexShader returned %s
\n
"
,
DXGetErrorString9
(
hr
));
hr
=
IDirect3DDevice9_CreateVertexDeclaration
(
device
,
decl_elements
,
&
decl
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_CreateVertexDeclaration returned %s
\n
"
,
DXGetErrorString9
(
hr
));
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xffffffff
,
0
.
4
,
0
);
...
...
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