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
fb6c973b
Commit
fb6c973b
authored
Jun 27, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Jun 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXEffect::BeginPass().
parent
a63be635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
effect.c
dlls/d3dx9_36/effect.c
+17
-3
No files found.
dlls/d3dx9_36/effect.c
View file @
fb6c973b
...
...
@@ -166,6 +166,7 @@ struct ID3DXEffectImpl
LPDIRECT3DDEVICE9
device
;
LPD3DXEFFECTPOOL
pool
;
D3DXHANDLE
active_technique
;
D3DXHANDLE
active_pass
;
ID3DXBaseEffect
*
base_effect
;
};
...
...
@@ -2819,13 +2820,25 @@ static HRESULT WINAPI ID3DXEffectImpl_Begin(ID3DXEffect *iface, UINT *passes, DW
return
D3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
ID3DXEffectImpl_BeginPass
(
ID3DXEffect
*
iface
,
UINT
pass
)
static
HRESULT
WINAPI
ID3DXEffectImpl_BeginPass
(
ID3DXEffect
*
iface
,
UINT
pass
)
{
struct
ID3DXEffectImpl
*
This
=
impl_from_ID3DXEffect
(
iface
);
struct
d3dx_technique
*
technique
=
get_technique_struct
(
This
->
active_technique
);
FIXME
(
"(%p)->(%u): stub
\n
"
,
This
,
pass
);
TRACE
(
"iface %p, pass %u
\n
"
,
This
,
pass
);
return
E_NOTIMPL
;
if
(
technique
&&
pass
<
technique
->
pass_count
&&
!
This
->
active_pass
)
{
This
->
active_pass
=
technique
->
pass_handles
[
pass
];
FIXME
(
"No states applied, yet!
\n
"
);
return
D3D_OK
;
}
WARN
(
"Invalid argument supplied.
\n
"
);
return
D3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
ID3DXEffectImpl_CommitChanges
(
ID3DXEffect
*
iface
)
...
...
@@ -5012,6 +5025,7 @@ static HRESULT d3dx9_effect_init(struct ID3DXEffectImpl *effect, LPDIRECT3DDEVIC
if
(
object
->
technique_handles
)
{
effect
->
active_technique
=
object
->
technique_handles
[
0
];
effect
->
active_pass
=
NULL
;
}
return
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