Matteo Bruni : wined3d: Handle WINED3D_SHADE_PHONG the same as WINED3D_SHADE_GOURAUD.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 13 08:34:47 CST 2015


Module: wine
Branch: master
Commit: c5b2d3f10c8c7c85683631045ddb4fc74c1d85f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c5b2d3f10c8c7c85683631045ddb4fc74c1d85f5

Author: Matteo Bruni <mbruni at 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 at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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]);




More information about the wine-cvs mailing list