wined3d: Reorder WINED3DSIH values alphabetically in shader_glsl_map2gl().
authorJózef Kucia <jkucia@codeweavers.com>
Mon, 4 Jan 2016 12:03:42 +0000 (13:03 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 5 Jan 2016 10:51:23 +0000 (11:51 +0100)
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/glsl_shader.c

index 9c65ae4b79c89bcb354a46e23485a96d3b4e127c..e2d16b589d1af55bb58d23c8681b629c71593cee 100644 (file)
@@ -3191,14 +3191,14 @@ static void shader_glsl_map2gl(const struct wined3d_shader_instruction *ins)
     /* TODO: Possibly make this a table for faster lookups */
     switch (ins->handler_idx)
     {
-        case WINED3DSIH_IMAX: instruction = "max"; break;
-        case WINED3DSIH_IMIN: instruction = "min"; break;
-        case WINED3DSIH_MIN: instruction = "min"; break;
-        case WINED3DSIH_MAX: instruction = "max"; break;
         case WINED3DSIH_ABS: instruction = "abs"; break;
-        case WINED3DSIH_FRC: instruction = "fract"; break;
         case WINED3DSIH_DSX: instruction = "dFdx"; break;
         case WINED3DSIH_DSY: instruction = "ycorrection.y * dFdy"; break;
+        case WINED3DSIH_FRC: instruction = "fract"; break;
+        case WINED3DSIH_IMAX: instruction = "max"; break;
+        case WINED3DSIH_IMIN: instruction = "min"; break;
+        case WINED3DSIH_MAX: instruction = "max"; break;
+        case WINED3DSIH_MIN: instruction = "min"; break;
         case WINED3DSIH_ROUND_NI: instruction = "floor"; break;
         case WINED3DSIH_SQRT: instruction = "sqrt"; break;
         default: instruction = "";