wined3d: Handle WINED3D_SHADE_PHONG the same as WINED3D_SHADE_GOURAUD.
authorMatteo Bruni <mbruni@codeweavers.com>
Thu, 12 Nov 2015 22:06:43 +0000 (23:06 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 13 Nov 2015 13:54:01 +0000 (22:54 +0900)
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

index 2be3cab75fd2fd82a476527d838f789c41598943..942023eb737a5c84e00ba35ccf062de6cdf95216 100644 (file)
@@ -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]);