wined3d: Handle WINED3D_SHADE_PHONG the same as WINED3D_SHADE_GOURAUD.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d6c8146633
commit
c5b2d3f10c
|
@ -176,12 +176,12 @@ static void state_shademode(struct wined3d_context *context, const struct wined3
|
||||||
checkGLcall("glShadeModel(GL_FLAT)");
|
checkGLcall("glShadeModel(GL_FLAT)");
|
||||||
break;
|
break;
|
||||||
case WINED3D_SHADE_GOURAUD:
|
case WINED3D_SHADE_GOURAUD:
|
||||||
|
/* WINED3D_SHADE_PHONG in practice is the same as WINED3D_SHADE_GOURAUD
|
||||||
|
* in D3D. */
|
||||||
|
case WINED3D_SHADE_PHONG:
|
||||||
gl_info->gl_ops.gl.p_glShadeModel(GL_SMOOTH);
|
gl_info->gl_ops.gl.p_glShadeModel(GL_SMOOTH);
|
||||||
checkGLcall("glShadeModel(GL_SMOOTH)");
|
checkGLcall("glShadeModel(GL_SMOOTH)");
|
||||||
break;
|
break;
|
||||||
case WINED3D_SHADE_PHONG:
|
|
||||||
FIXME("WINED3D_SHADE_PHONG isn't supported.\n");
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized shade mode %#x.\n",
|
FIXME("Unrecognized shade mode %#x.\n",
|
||||||
state->render_states[WINED3D_RS_SHADEMODE]);
|
state->render_states[WINED3D_RS_SHADEMODE]);
|
||||||
|
|
Loading…
Reference in New Issue