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
97a5336c
Commit
97a5336c
authored
Mar 31, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix the EXT_blend_subtract extension definitions.
parent
e4e28c47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
directx.c
dlls/wined3d/directx.c
+1
-0
state.c
dlls/wined3d/state.c
+10
-10
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+8
-0
No files found.
dlls/wined3d/directx.c
View file @
97a5336c
...
...
@@ -105,6 +105,7 @@ static const struct {
{
"GL_EXT_blend_equation_separate"
,
EXT_BLEND_EQUATION_SEPARATE
,
0
},
{
"GL_EXT_blend_func_separate"
,
EXT_BLEND_FUNC_SEPARATE
,
0
},
{
"GL_EXT_blend_minmax"
,
EXT_BLEND_MINMAX
,
0
},
{
"GL_EXT_blend_subtract"
,
EXT_BLEND_SUBTRACT
,
0
},
{
"GL_EXT_depth_bounds_test"
,
EXT_DEPTH_BOUNDS_TEST
,
0
},
{
"GL_EXT_draw_buffers2"
,
EXT_DRAW_BUFFERS2
,
0
},
{
"GL_EXT_fog_coord"
,
EXT_FOG_COORD
,
0
},
...
...
dlls/wined3d/state.c
View file @
97a5336c
...
...
@@ -650,11 +650,11 @@ static void state_blendop(DWORD state, struct wined3d_stateblock *stateblock, st
switch
(
stateblock
->
state
.
render_states
[
WINED3DRS_BLENDOP
])
{
case
WINED3DBLENDOP_ADD
:
blendEquation
=
GL_FUNC_ADD_EXT
;
break
;
case
WINED3DBLENDOP_SUBTRACT
:
blendEquation
=
GL_FUNC_SUBTRAC
T
;
break
;
case
WINED3DBLENDOP_REVSUBTRACT
:
blendEquation
=
GL_FUNC_REVERSE_SUBTRAC
T
;
break
;
case
WINED3DBLENDOP_MIN
:
blendEquation
=
GL_MIN_EXT
;
break
;
case
WINED3DBLENDOP_MAX
:
blendEquation
=
GL_MAX_EXT
;
break
;
case
WINED3DBLENDOP_ADD
:
blendEquation
=
GL_FUNC_ADD_EXT
;
break
;
case
WINED3DBLENDOP_SUBTRACT
:
blendEquation
=
GL_FUNC_SUBTRACT_EX
T
;
break
;
case
WINED3DBLENDOP_REVSUBTRACT
:
blendEquation
=
GL_FUNC_REVERSE_SUBTRACT_EX
T
;
break
;
case
WINED3DBLENDOP_MIN
:
blendEquation
=
GL_MIN_EXT
;
break
;
case
WINED3DBLENDOP_MAX
:
blendEquation
=
GL_MAX_EXT
;
break
;
default:
FIXME
(
"Unrecognized/Unhandled D3DBLENDOP value %#x.
\n
"
,
stateblock
->
state
.
render_states
[
WINED3DRS_BLENDOP
]);
...
...
@@ -662,11 +662,11 @@ static void state_blendop(DWORD state, struct wined3d_stateblock *stateblock, st
switch
(
stateblock
->
state
.
render_states
[
WINED3DRS_BLENDOPALPHA
])
{
case
WINED3DBLENDOP_ADD
:
blendEquationAlpha
=
GL_FUNC_ADD_EXT
;
break
;
case
WINED3DBLENDOP_SUBTRACT
:
blendEquationAlpha
=
GL_FUNC_SUBTRAC
T
;
break
;
case
WINED3DBLENDOP_REVSUBTRACT
:
blendEquationAlpha
=
GL_FUNC_REVERSE_SUBTRAC
T
;
break
;
case
WINED3DBLENDOP_MIN
:
blendEquationAlpha
=
GL_MIN_EXT
;
break
;
case
WINED3DBLENDOP_MAX
:
blendEquationAlpha
=
GL_MAX_EXT
;
break
;
case
WINED3DBLENDOP_ADD
:
blendEquationAlpha
=
GL_FUNC_ADD_EXT
;
break
;
case
WINED3DBLENDOP_SUBTRACT
:
blendEquationAlpha
=
GL_FUNC_SUBTRACT_EX
T
;
break
;
case
WINED3DBLENDOP_REVSUBTRACT
:
blendEquationAlpha
=
GL_FUNC_REVERSE_SUBTRACT_EX
T
;
break
;
case
WINED3DBLENDOP_MIN
:
blendEquationAlpha
=
GL_MIN_EXT
;
break
;
case
WINED3DBLENDOP_MAX
:
blendEquationAlpha
=
GL_MAX_EXT
;
break
;
default:
FIXME
(
"Unrecognized/Unhandled D3DBLENDOP value %#x
\n
"
,
stateblock
->
state
.
render_states
[
WINED3DRS_BLENDOPALPHA
]);
...
...
dlls/wined3d/wined3d_gl.h
View file @
97a5336c
...
...
@@ -1786,6 +1786,7 @@ typedef enum wined3d_gl_extension
EXT_BLEND_EQUATION_SEPARATE
,
EXT_BLEND_FUNC_SEPARATE
,
EXT_BLEND_MINMAX
,
EXT_BLEND_SUBTRACT
,
EXT_DRAW_BUFFERS2
,
EXT_DEPTH_BOUNDS_TEST
,
EXT_FOG_COORD
,
...
...
@@ -3006,6 +3007,13 @@ typedef void (WINE_GLAPI *PGLFNBLENDFUNCSEPARATEEXTPROC)(GLenum sfactorRGB, GLen
#endif
typedef
void
(
WINE_GLAPI
*
PGLFNBLENDEQUATIONEXTPROC
)(
GLenum
mode
);
/* GL_EXT_blend_subtract */
#ifndef GL_EXT_blend_subtract
#define GL_EXT_blend_subtract 1
#define GL_FUNC_SUBTRACT_EXT 0x800a
#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800b
#endif
/* GL_EXT_depth_bounds_test */
#ifndef GL_EXT_depth_bounds_test
#define GL_EXT_depth_bounds_test 1
...
...
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