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
eb620386
Commit
eb620386
authored
Jan 02, 2003
by
Christian Costa
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle more blend states.
parent
07bcdf40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
mesa.c
dlls/ddraw/mesa.c
+46
-2
No files found.
dlls/ddraw/mesa.c
View file @
eb620386
...
...
@@ -197,28 +197,72 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
case
D3DRENDERSTATE_SRCBLEND
:
/* 19 */
switch
((
D3DBLEND
)
dwRenderState
)
{
case
D3DBLEND_ZERO
:
rs
->
src
=
GL_ZERO
;
break
;
case
D3DBLEND_ONE
:
rs
->
src
=
GL_ONE
;
break
;
case
D3DBLEND_SRCALPHA
:
rs
->
src
=
GL_SRC_ALPHA
;
break
;
case
D3DBLEND_INVSRCALPHA
:
rs
->
src
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
D3DBLEND_DESTALPHA
:
rs
->
src
=
GL_DST_ALPHA
;
break
;
case
D3DBLEND_INVDESTALPHA
:
rs
->
src
=
GL_ONE_MINUS_DST_ALPHA
;
break
;
case
D3DBLEND_DESTCOLOR
:
rs
->
src
=
GL_DST_COLOR
;
break
;
case
D3DBLEND_INVDESTCOLOR
:
rs
->
src
=
GL_ONE_MINUS_DST_COLOR
;
break
;
case
D3DBLEND_SRCCOLOR
:
case
D3DBLEND_INVSRCCOLOR
:
/* Cannot be supported with OpenGL */
break
;
default:
ERR
(
"Unhandled blend mode %ld !
\n
"
,
dwRenderState
);
ERR
(
"Unhandled
src
blend mode %ld !
\n
"
,
dwRenderState
);
}
glBlendFunc
(
rs
->
src
,
rs
->
dst
);
break
;
case
D3DRENDERSTATE_DESTBLEND
:
/* 20 */
switch
((
D3DBLEND
)
dwRenderState
)
{
case
D3DBLEND_ZERO
:
rs
->
dst
=
GL_ZERO
;
break
;
case
D3DBLEND_ONE
:
rs
->
dst
=
GL_ONE
;
break
;
case
D3DBLEND_SRCCOLOR
:
rs
->
dst
=
GL_SRC_COLOR
;
break
;
case
D3DBLEND_INVSRCCOLOR
:
rs
->
dst
=
GL_ONE_MINUS_SRC_COLOR
;
break
;
case
D3DBLEND_SRCALPHA
:
rs
->
dst
=
GL_SRC_ALPHA
;
break
;
case
D3DBLEND_INVSRCALPHA
:
rs
->
dst
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
D3DBLEND_DESTALPHA
:
rs
->
dst
=
GL_DST_ALPHA
;
break
;
case
D3DBLEND_INVDESTALPHA
:
rs
->
dst
=
GL_ONE_MINUS_DST_ALPHA
;
break
;
case
D3DBLEND_DESTCOLOR
:
case
D3DBLEND_INVDESTCOLOR
:
/* Cannot be supported with OpenGL */
break
;
default:
ERR
(
"Unhandled blend mode %ld !
\n
"
,
dwRenderState
);
ERR
(
"Unhandled
dest
blend mode %ld !
\n
"
,
dwRenderState
);
}
glBlendFunc
(
rs
->
src
,
rs
->
dst
);
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