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
969f3be7
Commit
969f3be7
authored
Dec 19, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DBLENDOP typedef.
parent
b39125d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
state.c
dlls/wined3d/state.c
+6
-6
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
wined3d.h
include/wine/wined3d.h
+8
-9
No files found.
dlls/wined3d/state.c
View file @
969f3be7
...
...
@@ -242,19 +242,19 @@ static void state_blendop_w(struct wined3d_context *context, const struct wined3
WARN
(
"Unsupported in local OpenGL implementation: glBlendEquation
\n
"
);
}
static
GLenum
gl_blend_op
(
WINED3DBLENDOP
op
)
static
GLenum
gl_blend_op
(
enum
wined3d_blend_op
op
)
{
switch
(
op
)
{
case
WINED3D
BLEND
OP_ADD
:
case
WINED3D
_BLEND_
OP_ADD
:
return
GL_FUNC_ADD_EXT
;
case
WINED3D
BLEND
OP_SUBTRACT
:
case
WINED3D
_BLEND_
OP_SUBTRACT
:
return
GL_FUNC_SUBTRACT_EXT
;
case
WINED3D
BLEND
OP_REVSUBTRACT
:
case
WINED3D
_BLEND_
OP_REVSUBTRACT
:
return
GL_FUNC_REVERSE_SUBTRACT_EXT
;
case
WINED3D
BLEND
OP_MIN
:
case
WINED3D
_BLEND_
OP_MIN
:
return
GL_MIN_EXT
;
case
WINED3D
BLEND
OP_MAX
:
case
WINED3D
_BLEND_
OP_MAX
:
return
GL_MAX_EXT
;
default:
FIXME
(
"Unhandled blend op %#x.
\n
"
,
op
);
...
...
dlls/wined3d/stateblock.c
View file @
969f3be7
...
...
@@ -1207,7 +1207,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3DRS_COLORWRITEENABLE
]
=
0x0000000f
;
tmpfloat
.
f
=
0
.
0
f
;
state
->
render_states
[
WINED3DRS_TWEENFACTOR
]
=
tmpfloat
.
d
;
state
->
render_states
[
WINED3DRS_BLENDOP
]
=
WINED3D
BLEND
OP_ADD
;
state
->
render_states
[
WINED3DRS_BLENDOP
]
=
WINED3D
_BLEND_
OP_ADD
;
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]
=
WINED3DDEGREE_CUBIC
;
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]
=
WINED3DDEGREE_LINEAR
;
/* states new in d3d9 */
...
...
@@ -1247,7 +1247,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3DRS_SEPARATEALPHABLENDENABLE
]
=
FALSE
;
state
->
render_states
[
WINED3DRS_SRCBLENDALPHA
]
=
WINED3D_BLEND_ONE
;
state
->
render_states
[
WINED3DRS_DESTBLENDALPHA
]
=
WINED3D_BLEND_ZERO
;
state
->
render_states
[
WINED3DRS_BLENDOPALPHA
]
=
WINED3D
BLEND
OP_ADD
;
state
->
render_states
[
WINED3DRS_BLENDOPALPHA
]
=
WINED3D
_BLEND_
OP_ADD
;
/* Texture Stage States - Put directly into state block, we will call function below */
for
(
i
=
0
;
i
<
MAX_TEXTURES
;
++
i
)
...
...
include/wine/wined3d.h
View file @
969f3be7
...
...
@@ -404,15 +404,14 @@ enum wined3d_blend
WINED3D_BLEND_INVBLENDFACTOR
=
15
,
};
typedef
enum
_WINED3DBLENDOP
{
WINED3DBLENDOP_ADD
=
1
,
WINED3DBLENDOP_SUBTRACT
=
2
,
WINED3DBLENDOP_REVSUBTRACT
=
3
,
WINED3DBLENDOP_MIN
=
4
,
WINED3DBLENDOP_MAX
=
5
,
WINED3DBLENDOP_FORCE_DWORD
=
0x7fffffff
}
WINED3DBLENDOP
;
enum
wined3d_blend_op
{
WINED3D_BLEND_OP_ADD
=
1
,
WINED3D_BLEND_OP_SUBTRACT
=
2
,
WINED3D_BLEND_OP_REVSUBTRACT
=
3
,
WINED3D_BLEND_OP_MIN
=
4
,
WINED3D_BLEND_OP_MAX
=
5
,
};
typedef
enum
_WINED3DVERTEXBLENDFLAGS
{
...
...
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