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
28b9e1b9
Commit
28b9e1b9
authored
Jan 22, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Avoid preprocessor checks to ensure it compiles.
parent
81ea0cd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
mesh.c
dlls/d3dx9_36/tests/mesh.c
+4
-3
shader.c
dlls/d3dx9_36/tests/shader.c
+3
-2
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
28b9e1b9
...
...
@@ -4070,14 +4070,15 @@ static void D3DXCreateTextTest(void)
d3dxmesh
->
lpVtbl
->
GetNumVertices
(
d3dxmesh
),
number_of_faces
);
if
(
SUCCEEDED
(
hr
)
&&
d3dxmesh
)
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
#if 0
if
(
0
)
{
/* too much detail requested, so will appear to hang */
trace
(
"Waiting for D3DXCreateText to finish with deviation = FLT_MIN ...
\n
"
);
hr = D3DXCreateText(device, hdc, "wine", FLT_MIN, 0.4f, &d3dxmesh, NULL, NULL);
hr
=
D3DXCreateText
A
(
device
,
hdc
,
"wine"
,
FLT_MIN
,
0
.
4
f
,
&
d3dxmesh
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected %x (D3D_OK)
\n
"
,
hr
,
D3D_OK
);
if
(
SUCCEEDED
(
hr
)
&&
d3dxmesh
)
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
trace
(
"D3DXCreateText finish with deviation = FLT_MIN
\n
"
);
#endif
}
hr
=
D3DXCreateTextA
(
device
,
hdc
,
"wine"
,
0
.
001
f
,
0
.
4
f
,
&
d3dxmesh
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected %x (D3D_OK)
\n
"
,
hr
,
D3D_OK
);
...
...
dlls/d3dx9_36/tests/shader.c
View file @
28b9e1b9
...
...
@@ -1564,11 +1564,12 @@ static void test_get_shader_samplers(void)
UINT
count
=
2
;
HRESULT
hr
;
#if 0
if
(
0
)
{
/* crashes if bytecode is NULL */
hr
=
D3DXGetShaderSamplers
(
NULL
,
NULL
,
&
count
);
ok
(
hr
==
D3D_OK
,
"D3DXGetShaderSamplers failed, got %x, expected %x
\n
"
,
hr
,
D3D_OK
);
#endif
}
hr
=
D3DXGetShaderSamplers
(
get_shader_samplers_blob
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"D3DXGetShaderSamplers failed, got %x, expected %x
\n
"
,
hr
,
D3D_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