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
0a23fc7b
Commit
0a23fc7b
authored
Apr 20, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXBaseEffect::GetPassByName().
parent
2e2b3c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
effect.c
dlls/d3dx9_36/effect.c
+22
-1
No files found.
dlls/d3dx9_36/effect.c
View file @
0a23fc7b
...
...
@@ -688,8 +688,29 @@ static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetPass(ID3DXBaseEffect *iface, D3D
static
D3DXHANDLE
WINAPI
ID3DXBaseEffectImpl_GetPassByName
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
technique
,
LPCSTR
name
)
{
struct
ID3DXBaseEffectImpl
*
This
=
impl_from_ID3DXBaseEffect
(
iface
);
struct
d3dx_technique
*
tech
=
is_valid_technique
(
This
,
technique
);
TRACE
(
"iface %p, technique %p, name %s
\n
"
,
This
,
technique
,
debugstr_a
(
name
));
if
(
!
tech
)
tech
=
get_technique_struct
(
iface
->
lpVtbl
->
GetTechniqueByName
(
iface
,
technique
));
if
(
tech
&&
name
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
tech
->
pass_count
;
++
i
)
{
struct
d3dx_pass
*
pass
=
get_pass_struct
(
tech
->
pass_handles
[
i
]);
FIXME
(
"iface %p, technique %p, name %s stub
\n
"
,
This
,
technique
,
debugstr_a
(
name
));
if
(
!
strcmp
(
pass
->
name
,
name
))
{
TRACE
(
"Returning pass %p
\n
"
,
tech
->
pass_handles
[
i
]);
return
tech
->
pass_handles
[
i
];
}
}
}
WARN
(
"Invalid argument specified.
\n
"
);
return
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