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
fd578240
Commit
fd578240
authored
May 27, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix compilation with Visual C++ 2005.
parent
29a4a9c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
visual.c
dlls/d3d9/tests/visual.c
+8
-2
No files found.
dlls/d3d9/tests/visual.c
View file @
fd578240
...
@@ -693,8 +693,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
...
@@ -693,8 +693,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
{
{
HRESULT
hr
;
HRESULT
hr
;
DWORD
color
;
DWORD
color
;
/* NOTE: changing these values will not effect the tests with foggy vertex shader, as the values are hardcoded in the shader*/
union
{
union
{
float
f
;
DWORD
i
;}
start
=
{.
f
=
0
.
9
},
end
=
{.
f
=
0
.
1
};
float
f
;
DWORD
i
;
}
start
,
end
;
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
/* basic vertex shader without fog computation ("non foggy") */
/* basic vertex shader without fog computation ("non foggy") */
...
@@ -828,6 +830,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
...
@@ -828,6 +830,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
};
};
/* NOTE: changing these values will not affect the tests with foggy vertex shader, as the values are hardcoded in the shader*/
start
.
f
=
0
.
9
;
end
.
f
=
0
.
1
;
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
vertex_shader_code1
,
&
vertex_shader
[
1
]);
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
vertex_shader_code1
,
&
vertex_shader
[
1
]);
ok
(
SUCCEEDED
(
hr
),
"CreateVertexShader failed (%08x)
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"CreateVertexShader failed (%08x)
\n
"
,
hr
);
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
vertex_shader_code2
,
&
vertex_shader
[
2
]);
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
vertex_shader_code2
,
&
vertex_shader
[
2
]);
...
...
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