wined3d: Fix the EXT_blend_color extension definitions.
This commit is contained in:
parent
f8507d6061
commit
e4e28c47ea
|
@ -314,8 +314,8 @@ static void state_blend(DWORD state, struct wined3d_stateblock *stateblock, stru
|
||||||
FIXME("WINED3DRS_DESTBLEND = WINED3DBLEND_BOTHINVSRCALPHA, what to do?\n");
|
FIXME("WINED3DRS_DESTBLEND = WINED3DBLEND_BOTHINVSRCALPHA, what to do?\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WINED3DBLEND_BLENDFACTOR : dstBlend = GL_CONSTANT_COLOR; break;
|
case WINED3DBLEND_BLENDFACTOR : dstBlend = GL_CONSTANT_COLOR_EXT; break;
|
||||||
case WINED3DBLEND_INVBLENDFACTOR : dstBlend = GL_ONE_MINUS_CONSTANT_COLOR; break;
|
case WINED3DBLEND_INVBLENDFACTOR : dstBlend = GL_ONE_MINUS_CONSTANT_COLOR_EXT; break;
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized dst blend value %#x.\n",
|
FIXME("Unrecognized dst blend value %#x.\n",
|
||||||
stateblock->state.render_states[WINED3DRS_DESTBLEND]);
|
stateblock->state.render_states[WINED3DRS_DESTBLEND]);
|
||||||
|
@ -348,8 +348,8 @@ static void state_blend(DWORD state, struct wined3d_stateblock *stateblock, stru
|
||||||
dstBlend = GL_SRC_ALPHA;
|
dstBlend = GL_SRC_ALPHA;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WINED3DBLEND_BLENDFACTOR : srcBlend = GL_CONSTANT_COLOR; break;
|
case WINED3DBLEND_BLENDFACTOR : srcBlend = GL_CONSTANT_COLOR_EXT; break;
|
||||||
case WINED3DBLEND_INVBLENDFACTOR : srcBlend = GL_ONE_MINUS_CONSTANT_COLOR; break;
|
case WINED3DBLEND_INVBLENDFACTOR : srcBlend = GL_ONE_MINUS_CONSTANT_COLOR_EXT; break;
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized src blend value %#x.\n",
|
FIXME("Unrecognized src blend value %#x.\n",
|
||||||
stateblock->state.render_states[WINED3DRS_SRCBLEND]);
|
stateblock->state.render_states[WINED3DRS_SRCBLEND]);
|
||||||
|
@ -417,8 +417,8 @@ static void state_blend(DWORD state, struct wined3d_stateblock *stateblock, stru
|
||||||
srcBlendAlpha = GL_ONE_MINUS_SRC_ALPHA;
|
srcBlendAlpha = GL_ONE_MINUS_SRC_ALPHA;
|
||||||
FIXME("WINED3DRS_DESTBLENDALPHA = WINED3DBLEND_BOTHINVSRCALPHA, what to do?\n");
|
FIXME("WINED3DRS_DESTBLENDALPHA = WINED3DBLEND_BOTHINVSRCALPHA, what to do?\n");
|
||||||
break;
|
break;
|
||||||
case WINED3DBLEND_BLENDFACTOR : dstBlendAlpha = GL_CONSTANT_COLOR; break;
|
case WINED3DBLEND_BLENDFACTOR : dstBlendAlpha = GL_CONSTANT_COLOR_EXT; break;
|
||||||
case WINED3DBLEND_INVBLENDFACTOR : dstBlendAlpha = GL_ONE_MINUS_CONSTANT_COLOR; break;
|
case WINED3DBLEND_INVBLENDFACTOR : dstBlendAlpha = GL_ONE_MINUS_CONSTANT_COLOR_EXT; break;
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized dst blend alpha value %#x.\n",
|
FIXME("Unrecognized dst blend alpha value %#x.\n",
|
||||||
stateblock->state.render_states[WINED3DRS_DESTBLENDALPHA]);
|
stateblock->state.render_states[WINED3DRS_DESTBLENDALPHA]);
|
||||||
|
@ -445,8 +445,8 @@ static void state_blend(DWORD state, struct wined3d_stateblock *stateblock, stru
|
||||||
srcBlendAlpha = GL_ONE_MINUS_SRC_ALPHA;
|
srcBlendAlpha = GL_ONE_MINUS_SRC_ALPHA;
|
||||||
dstBlendAlpha = GL_SRC_ALPHA;
|
dstBlendAlpha = GL_SRC_ALPHA;
|
||||||
break;
|
break;
|
||||||
case WINED3DBLEND_BLENDFACTOR : srcBlendAlpha = GL_CONSTANT_COLOR; break;
|
case WINED3DBLEND_BLENDFACTOR : srcBlendAlpha = GL_CONSTANT_COLOR_EXT; break;
|
||||||
case WINED3DBLEND_INVBLENDFACTOR : srcBlendAlpha = GL_ONE_MINUS_CONSTANT_COLOR; break;
|
case WINED3DBLEND_INVBLENDFACTOR : srcBlendAlpha = GL_ONE_MINUS_CONSTANT_COLOR_EXT; break;
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized src blend alpha value %#x.\n",
|
FIXME("Unrecognized src blend alpha value %#x.\n",
|
||||||
stateblock->state.render_states[WINED3DRS_SRCBLENDALPHA]);
|
stateblock->state.render_states[WINED3DRS_SRCBLENDALPHA]);
|
||||||
|
|
|
@ -2970,6 +2970,18 @@ typedef void (WINE_GLAPI *PGLFNSTENCILFUNCSEPARATEATIPROC)(GLenum, GLenum, GLint
|
||||||
#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
|
#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* GL_EXT_blend_color */
|
||||||
|
#ifndef GL_EXT_blend_color
|
||||||
|
#define GL_EXT_blend_color 1
|
||||||
|
#define GL_CONSTANT_COLOR_EXT 0x8001
|
||||||
|
#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
|
||||||
|
#define GL_CONSTANT_ALPHA_EXT 0x8003
|
||||||
|
#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
|
||||||
|
#define GL_BLEND_COLOR_EXT 0x8005
|
||||||
|
#endif
|
||||||
|
typedef GLvoid (WINE_GLAPI *PGLFNBLENDCOLOREXTPROC)(GLclampf red,
|
||||||
|
GLclampf green, GLclampf blue, GLclampf alpha);
|
||||||
|
|
||||||
/* GL_EXT_blend_equation_separate */
|
/* GL_EXT_blend_equation_separate */
|
||||||
typedef void (WINE_GLAPI *PGLFNBLENDEQUATIONSEPARATEEXTPROC)(GLenum modeRGB, GLenum modeAlpha);
|
typedef void (WINE_GLAPI *PGLFNBLENDEQUATIONSEPARATEEXTPROC)(GLenum modeRGB, GLenum modeAlpha);
|
||||||
|
|
||||||
|
@ -4237,7 +4249,7 @@ typedef BOOL (WINAPI *WINED3D_PFNWGLSWAPINTERVALEXTPROC)(int interval);
|
||||||
USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEATIPROC, \
|
USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEATIPROC, \
|
||||||
glStencilFuncSeparateATI, ATI_SEPARATE_STENCIL, NULL) \
|
glStencilFuncSeparateATI, ATI_SEPARATE_STENCIL, NULL) \
|
||||||
/* GL_EXT_blend_color */ \
|
/* GL_EXT_blend_color */ \
|
||||||
USE_GL_FUNC(PGLFNBLENDCOLORPROC, \
|
USE_GL_FUNC(PGLFNBLENDCOLOREXTPROC, \
|
||||||
glBlendColorEXT, EXT_BLEND_COLOR, NULL) \
|
glBlendColorEXT, EXT_BLEND_COLOR, NULL) \
|
||||||
/* GL_EXT_blend_equation_separate */ \
|
/* GL_EXT_blend_equation_separate */ \
|
||||||
USE_GL_FUNC(PGLFNBLENDFUNCSEPARATEEXTPROC, \
|
USE_GL_FUNC(PGLFNBLENDFUNCSEPARATEEXTPROC, \
|
||||||
|
|
Loading…
Reference in New Issue