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
d8225557
Commit
d8225557
authored
Sep 03, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Sep 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix D3DXAssembleShader tests.
parent
d6ead897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
asm.c
dlls/d3dx9_36/tests/asm.c
+7
-6
No files found.
dlls/d3dx9_36/tests/asm.c
View file @
d8225557
...
...
@@ -115,6 +115,7 @@ static void assembleshader_test(void) {
"#include
\"
incl4.vsh
\"\n
"
};
const
char
testincl4_ok
[]
=
{
"#define REGISTER r0
\n
"
"vs.1.1
\n
"
};
const
char
testincl4_wrong
[]
=
{
...
...
@@ -208,9 +209,9 @@ static void assembleshader_test(void) {
}
if
(
shader
)
ID3DXBuffer_Release
(
shader
);
shader_vsh_res
=
create_file
(
"shader.vsh"
,
testshader
,
sizeof
(
testshader
));
shader_vsh_res
=
create_file
(
"shader.vsh"
,
testshader
,
sizeof
(
testshader
)
-
1
);
if
(
SUCCEEDED
(
shader_vsh_res
))
{
create_file
(
"incl.vsh"
,
testincl
,
sizeof
(
testincl
));
create_file
(
"incl.vsh"
,
testincl
,
sizeof
(
testincl
)
-
1
);
/* D3DXAssembleShaderFromFile + #include test */
shader
=
NULL
;
...
...
@@ -238,11 +239,11 @@ static void assembleshader_test(void) {
}
if
(
shader
)
ID3DXBuffer_Release
(
shader
);
create_file
(
"shader3.vsh"
,
testshader3
,
sizeof
(
testshader3
));
create_file
(
"incl4.vsh"
,
testincl4_wrong
,
sizeof
(
testincl4_wrong
));
create_file
(
"shader3.vsh"
,
testshader3
,
sizeof
(
testshader3
)
-
1
);
create_file
(
"incl4.vsh"
,
testincl4_wrong
,
sizeof
(
testincl4_wrong
)
-
1
);
if
(
CreateDirectoryA
(
"include"
,
NULL
))
{
create_file
(
"include/incl3.vsh"
,
testincl3
,
sizeof
(
testincl3
));
create_file
(
"include/incl4.vsh"
,
testincl4_ok
,
sizeof
(
testincl4_ok
));
create_file
(
"include/incl3.vsh"
,
testincl3
,
sizeof
(
testincl3
)
-
1
);
create_file
(
"include/incl4.vsh"
,
testincl4_ok
,
sizeof
(
testincl4_ok
)
-
1
);
/* path search #include test */
shader
=
NULL
;
...
...
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