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:
Matteo Bruni 2015-11-12 23:06:43 +01:00 committed by Alexandre Julliard
parent d6c8146633
commit c5b2d3f10c
1 changed files with 3 additions and 3 deletions

View File

@ -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]);