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
d1d5f4b6
Commit
d1d5f4b6
authored
Sep 01, 2006
by
András Kovács
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement BlendFactor renderstate.
parent
c33e6245
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
device.c
dlls/wined3d/device.c
+20
-2
No files found.
dlls/wined3d/device.c
View file @
d1d5f4b6
...
...
@@ -3608,6 +3608,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
This
->
srcBlend
=
newVal
;
This
->
dstBlend
=
newVal
;
break
;
case
D3DBLEND_BLENDFACTOR
:
newVal
=
GL_CONSTANT_COLOR
;
break
;
case
D3DBLEND_INVBLENDFACTOR
:
newVal
=
GL_ONE_MINUS_CONSTANT_COLOR
;
break
;
default:
FIXME
(
"Unrecognized src/dest blend value %ld (%d)
\n
"
,
Value
,
State
);
}
...
...
@@ -4534,8 +4536,24 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
case
WINED3DRS_BLENDFACTOR
:
{
if
(
0xFFFFFFFF
!=
Value
)
ERR
(
"(%p)->(%s,%ld) not yet implemented. Missing of cap D3DPBLENDCAPS_BLENDFACTOR wasn't honored?
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
float
col
[
4
];
if
(
GL_SUPPORT
(
ARB_IMAGING
))
{
TRACE
(
"Setting BlendFactor to %ld"
,
Value
);
D3DCOLORTOGLFLOAT4
(
Value
,
col
);
if
(
0xFFFFFFFF
!=
Value
)
{
glEnable
(
GL_BLEND
);
checkGLcall
(
"glEnable(GL_BLEND)"
);
}
else
{
glDisable
(
GL_BLEND
);
checkGLcall
(
"glDisable(GL_BLEND)"
);
}
glBlendColor
(
col
[
0
],
col
[
1
],
col
[
2
],
col
[
3
]);
}
else
{
WARN
(
"Unsupported in local OpenGL implementation: glBlendColor
\n
"
);
}
break
;
}
...
...
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