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
92460b98
Commit
92460b98
authored
Dec 10, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DRS_SEPARATEALPHABLENDENABLE to the state table.
parent
8a5bf91b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
22 deletions
+14
-22
device.c
dlls/wined3d/device.c
+4
-18
state.c
dlls/wined3d/state.c
+10
-4
No files found.
dlls/wined3d/device.c
View file @
92460b98
...
...
@@ -3438,6 +3438,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_ADAPTIVETESS_W
:
case
WINED3DRS_ENABLEADAPTIVETESSELLATION
:
case
WINED3DRS_SRGBWRITEENABLE
:
case
WINED3DRS_SEPARATEALPHABLENDENABLE
:
case
WINED3DRS_SRCBLENDALPHA
:
case
WINED3DRS_DESTBLENDALPHA
:
case
WINED3DRS_BLENDOPALPHA
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
...
...
@@ -3448,24 +3452,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
return
WINED3DERR_INVALIDCALL
;
}
case
WINED3DRS_SEPARATEALPHABLENDENABLE
:
{
if
(
Value
)
ERR
(
"(%p)->(%s,%d) not yet implemented. Missing of cap D3DPMISCCAPS_SEPARATEALPHABLEND wasn't honored?
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
break
;
}
case
WINED3DRS_SRCBLENDALPHA
:
case
WINED3DRS_DESTBLENDALPHA
:
case
WINED3DRS_BLENDOPALPHA
:
{
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_SEPARATEALPHABLENDENABLE
])
FIXME
(
"(%p)->(%s,%d) not yet implemented
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
else
TRACE
(
"(%p)->(%s,%d): recording state but WINED3DRS_SEPARATEALPHABLENDENABLE is not enabled
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
break
;
}
default:
FIXME
(
"(%p)->(%s,%d) unknown state
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
}
...
...
dlls/wined3d/state.c
View file @
92460b98
...
...
@@ -1214,6 +1214,12 @@ static void state_srgbwrite(DWORD state, IWineD3DStateBlockImpl *stateblock) {
ERR
(
"Render state WINED3DRS_SRGBWRITEENABLE not yet implemented
\n
"
);
}
static
void
state_seperateblend
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
TRACE
(
"Stub
\n
"
);
if
(
stateblock
->
renderState
[
WINED3DRS_SEPARATEALPHABLENDENABLE
])
FIXME
(
"(WINED3DRS_SEPARATEALPHABLENDENABLE,%d) not yet implemented
\n
"
,
stateblock
->
renderState
[
WINED3DRS_SEPARATEALPHABLENDENABLE
]);
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1427,8 +1433,8 @@ const struct StateEntry StateTable[] =
{
/*203, WINED3DRS_WRAP13 */
STATE_RENDER
(
WINED3DRS_WRAP0
),
state_wrap
},
{
/*204, WINED3DRS_WRAP14 */
STATE_RENDER
(
WINED3DRS_WRAP0
),
state_wrap
},
{
/*205, WINED3DRS_WRAP15 */
STATE_RENDER
(
WINED3DRS_WRAP0
),
state_wrap
},
{
/*206, WINED3DRS_SEPARATEALPHABLENDENABLE */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
unknown
},
{
/*207, WINED3DRS_SRCBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
unknown
},
{
/*208, WINED3DRS_DESTBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
unknown
},
{
/*209, WINED3DRS_BLENDOPALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
unknown
},
{
/*206, WINED3DRS_SEPARATEALPHABLENDENABLE */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
seperateblend
},
{
/*207, WINED3DRS_SRCBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
seperateblend
},
{
/*208, WINED3DRS_DESTBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
seperateblend
},
{
/*209, WINED3DRS_BLENDOPALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_
seperateblend
},
};
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