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
06cc0fa9
Commit
06cc0fa9
authored
Aug 12, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: GL_SRC_ALPHA_SATURATE is supported as src blend param only.
parent
581664c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
directx.c
dlls/wined3d/directx.c
+3
-1
state.c
dlls/wined3d/state.c
+5
-1
No files found.
dlls/wined3d/directx.c
View file @
06cc0fa9
...
...
@@ -1945,9 +1945,11 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
WINED3DPBLENDCAPS_INVSRCCOLOR
|
WINED3DPBLENDCAPS_ONE
|
WINED3DPBLENDCAPS_SRCALPHA
|
WINED3DPBLENDCAPS_SRCALPHASAT
|
WINED3DPBLENDCAPS_SRCCOLOR
|
WINED3DPBLENDCAPS_ZERO
;
/* NOTE: WINED3DPBLENDCAPS_SRCALPHASAT is not supported as dest blend factor,
* according to the glBlendFunc manpage
*/
*
pCaps
->
AlphaCmpCaps
=
WINED3DPCMPCAPS_ALWAYS
|
WINED3DPCMPCAPS_EQUAL
|
...
...
dlls/wined3d/state.c
View file @
06cc0fa9
...
...
@@ -285,7 +285,11 @@ static void state_blend(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
case
WINED3DBLEND_INVDESTALPHA
:
dstBlend
=
GL_ONE_MINUS_DST_ALPHA
;
break
;
case
WINED3DBLEND_DESTCOLOR
:
dstBlend
=
GL_DST_COLOR
;
break
;
case
WINED3DBLEND_INVDESTCOLOR
:
dstBlend
=
GL_ONE_MINUS_DST_COLOR
;
break
;
case
WINED3DBLEND_SRCALPHASAT
:
dstBlend
=
GL_SRC_ALPHA_SATURATE
;
break
;
case
WINED3DBLEND_SRCALPHASAT
:
dstBlend
=
GL_SRC_ALPHA_SATURATE
;
WARN
(
"Application uses SRCALPHASAT as dest blend factor, expect problems
\n
"
);
break
;
case
WINED3DBLEND_BOTHSRCALPHA
:
dstBlend
=
GL_SRC_ALPHA
;
srcBlend
=
GL_SRC_ALPHA
;
...
...
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