Module: wine Branch: master Commit: c5b2d3f10c8c7c85683631045ddb4fc74c1d85f5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c5b2d3f10c8c7c85683631045d...
Author: Matteo Bruni mbruni@codeweavers.com Date: Thu Nov 12 23:06:43 2015 +0100
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
---
dlls/wined3d/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 2be3cab..942023e 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -176,12 +176,12 @@ static void state_shademode(struct wined3d_context *context, const struct wined3 checkGLcall("glShadeModel(GL_FLAT)"); break; 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); checkGLcall("glShadeModel(GL_SMOOTH)"); break; - case WINED3D_SHADE_PHONG: - FIXME("WINED3D_SHADE_PHONG isn't supported.\n"); - break; default: FIXME("Unrecognized shade mode %#x.\n", state->render_states[WINED3D_RS_SHADEMODE]);