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
bc8d9131
Commit
bc8d9131
authored
Aug 25, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add a test for an include path containing '/'.
parent
ec364eaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
asm.c
dlls/d3dx9_36/tests/asm.c
+21
-0
No files found.
dlls/d3dx9_36/tests/asm.c
View file @
bc8d9131
...
...
@@ -86,6 +86,13 @@ static HRESULT WINAPI testD3DXInclude_open(ID3DXInclude *iface, D3DXINCLUDE_TYPE
/* Also check for the correct parent_data content */
ok
(
parent_data
!=
NULL
&&
!
strncmp
(
include2
,
parent_data
,
strlen
(
include2
)),
"wrong parent_data value
\n
"
);
}
else
if
(
!
strcmp
(
filename
,
"include/incl3.vsh"
))
{
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
include
));
memcpy
(
buffer
,
include
,
sizeof
(
include
));
*
bytes
=
sizeof
(
include
);
ok
(
!
parent_data
,
"wrong parent_data value
\n
"
);
}
else
{
ok
(
0
,
"Unexpected #include for file %s.
\n
"
,
filename
);
...
...
@@ -221,6 +228,20 @@ static void assembleshader_test(void)
}
if
(
shader
)
ID3DXBuffer_Release
(
shader
);
/* #include with a path. */
shader
=
NULL
;
messages
=
NULL
;
hr
=
D3DXAssembleShader
(
testshader3
,
strlen
(
testshader3
),
NULL
,
&
include
.
ID3DXInclude_iface
,
D3DXSHADER_SKIPVALIDATION
,
&
shader
,
&
messages
);
ok
(
hr
==
D3D_OK
,
"D3DXAssembleShader test failed with error 0x%x - %d
\n
"
,
hr
,
hr
&
0x0000ffff
);
if
(
messages
)
{
trace
(
"Path search D3DXAssembleShader messages:
\n
%s"
,
(
char
*
)
ID3DXBuffer_GetBufferPointer
(
messages
));
ID3DXBuffer_Release
(
messages
);
}
if
(
shader
)
ID3DXBuffer_Release
(
shader
);
shader_vsh_res
=
create_file
(
"shader.vsh"
,
testshader
,
sizeof
(
testshader
)
-
1
);
if
(
SUCCEEDED
(
shader_vsh_res
))
{
create_file
(
"incl.vsh"
,
testincl
,
sizeof
(
testincl
)
-
1
);
...
...
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