Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d6245409
Commit
d6245409
authored
Dec 25, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: D3DRS_BLENDFACTOR should not influence glBlend(TRUE/FALSE).
parent
bc904582
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
state.c
dlls/wined3d/state.c
+6
-5
No files found.
dlls/wined3d/state.c
View file @
d6245409
...
@@ -208,14 +208,11 @@ static void state_ambient(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -208,14 +208,11 @@ static void state_ambient(DWORD state, IWineD3DStateBlockImpl *stateblock) {
static
void
state_blend
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
static
void
state_blend
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
int
srcBlend
=
GL_ZERO
;
int
srcBlend
=
GL_ZERO
;
int
dstBlend
=
GL_ZERO
;
int
dstBlend
=
GL_ZERO
;
float
col
[
4
];
/* GL_LINE_SMOOTH needs GL_BLEND to work, according to the red book, and special blending params */
/* GL_LINE_SMOOTH needs GL_BLEND to work, according to the red book, and special blending params */
/* TODO: Is enabling blending really affected by the blendfactor??? */
if
(
stateblock
->
renderState
[
WINED3DRS_ALPHABLENDENABLE
]
||
if
(
stateblock
->
renderState
[
WINED3DRS_ALPHABLENDENABLE
]
||
stateblock
->
renderState
[
WINED3DRS_EDGEANTIALIAS
]
||
stateblock
->
renderState
[
WINED3DRS_EDGEANTIALIAS
]
||
stateblock
->
renderState
[
WINED3DRS_ANTIALIASEDLINEENABLE
]
||
stateblock
->
renderState
[
WINED3DRS_ANTIALIASEDLINEENABLE
])
{
stateblock
->
renderState
[
WINED3DRS_BLENDFACTOR
]
!=
0xFFFFFFFF
)
{
glEnable
(
GL_BLEND
);
glEnable
(
GL_BLEND
);
checkGLcall
(
"glEnable GL_BLEND"
);
checkGLcall
(
"glEnable GL_BLEND"
);
}
else
{
}
else
{
...
@@ -303,6 +300,10 @@ static void state_blend(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -303,6 +300,10 @@ static void state_blend(DWORD state, IWineD3DStateBlockImpl *stateblock) {
/* TODO: Remove when state management done */
/* TODO: Remove when state management done */
stateblock
->
wineD3DDevice
->
dstBlend
=
dstBlend
;
stateblock
->
wineD3DDevice
->
dstBlend
=
dstBlend
;
stateblock
->
wineD3DDevice
->
srcBlend
=
srcBlend
;
stateblock
->
wineD3DDevice
->
srcBlend
=
srcBlend
;
}
static
void
state_blendfactor
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
float
col
[
4
];
TRACE
(
"Setting BlendFactor to %d
\n
"
,
stateblock
->
renderState
[
WINED3DRS_BLENDFACTOR
]);
TRACE
(
"Setting BlendFactor to %d
\n
"
,
stateblock
->
renderState
[
WINED3DRS_BLENDFACTOR
]);
D3DCOLORTOGLFLOAT4
(
stateblock
->
renderState
[
WINED3DRS_BLENDFACTOR
],
col
);
D3DCOLORTOGLFLOAT4
(
stateblock
->
renderState
[
WINED3DRS_BLENDFACTOR
],
col
);
...
@@ -1961,7 +1962,7 @@ const struct StateEntry StateTable[] =
...
@@ -1961,7 +1962,7 @@ const struct StateEntry StateTable[] =
{
/*190, WINED3DRS_COLORWRITEENABLE1 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*190, WINED3DRS_COLORWRITEENABLE1 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*191, WINED3DRS_COLORWRITEENABLE2 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*191, WINED3DRS_COLORWRITEENABLE2 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*192, WINED3DRS_COLORWRITEENABLE3 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*192, WINED3DRS_COLORWRITEENABLE3 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*193, WINED3DRS_BLENDFACTOR */
STATE_RENDER
(
WINED3DRS_
ALPHABLENDENABLE
),
state_blend
},
{
/*193, WINED3DRS_BLENDFACTOR */
STATE_RENDER
(
WINED3DRS_
BLENDFACTOR
),
state_blendfactor
},
{
/*194, WINED3DRS_SRGBWRITEENABLE */
STATE_RENDER
(
WINED3DRS_SRGBWRITEENABLE
),
state_srgbwrite
},
{
/*194, WINED3DRS_SRGBWRITEENABLE */
STATE_RENDER
(
WINED3DRS_SRGBWRITEENABLE
),
state_srgbwrite
},
{
/*195, WINED3DRS_DEPTHBIAS */
STATE_RENDER
(
WINED3DRS_DEPTHBIAS
),
state_depthbias
},
{
/*195, WINED3DRS_DEPTHBIAS */
STATE_RENDER
(
WINED3DRS_DEPTHBIAS
),
state_depthbias
},
{
/*196, undefined */
0
,
state_undefined
},
{
/*196, undefined */
0
,
state_undefined
},
...
...
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