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
d3b4dc92
Commit
d3b4dc92
authored
Aug 01, 2013
by
Rico Schüller
Committed by
Alexandre Julliard
Aug 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Warn when submitting invalid flags to ID3DXEffect::Begin().
parent
3ff2255a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
effect.c
dlls/d3dx9_36/effect.c
+18
-1
No files found.
dlls/d3dx9_36/effect.c
View file @
d3b4dc92
...
...
@@ -177,6 +177,7 @@ struct ID3DXEffectImpl
struct
d3dx_technique
*
active_technique
;
struct
d3dx_pass
*
active_pass
;
BOOL
started
;
DWORD
flags
;
ID3DXBaseEffect
*
base_effect
;
};
...
...
@@ -3457,10 +3458,13 @@ static HRESULT WINAPI ID3DXEffectImpl_Begin(ID3DXEffect *iface, UINT *passes, DW
struct
ID3DXEffectImpl
*
This
=
impl_from_ID3DXEffect
(
iface
);
struct
d3dx_technique
*
technique
=
This
->
active_technique
;
FIXME
(
"iface %p, passes %p, flags %#x partial stub
\n
"
,
This
,
passes
,
flags
);
FIXME
(
"iface %p, passes %p, flags %#x partial stub
\n
"
,
iface
,
passes
,
flags
);
if
(
passes
&&
technique
)
{
if
(
flags
&
~
(
D3DXFX_DONOTSAVESTATE
|
D3DXFX_DONOTSAVESAMPLERSTATE
|
D3DXFX_DONOTSAVESHADERSTATE
))
WARN
(
"Invalid flags (%#x) specified.
\n
"
,
flags
);
if
(
This
->
manager
||
flags
&
D3DXFX_DONOTSAVESTATE
)
{
TRACE
(
"State capturing disabled.
\n
"
);
...
...
@@ -3472,6 +3476,7 @@ static HRESULT WINAPI ID3DXEffectImpl_Begin(ID3DXEffect *iface, UINT *passes, DW
*
passes
=
technique
->
pass_count
;
This
->
started
=
TRUE
;
This
->
flags
=
flags
;
return
D3D_OK
;
}
...
...
@@ -3534,6 +3539,18 @@ static HRESULT WINAPI ID3DXEffectImpl_End(ID3DXEffect *iface)
FIXME
(
"iface %p partial stub
\n
"
,
iface
);
if
(
!
This
->
started
)
return
D3D_OK
;
if
(
This
->
manager
||
This
->
flags
&
D3DXFX_DONOTSAVESTATE
)
{
TRACE
(
"State restoring disabled.
\n
"
);
}
else
{
FIXME
(
"State restoring not supported, yet!
\n
"
);
}
This
->
started
=
FALSE
;
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