=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Reorder WINED3DSIH values alphabetically in shader_glsl_map2gl().
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 5 12:18:32 CST 2016
Module: wine
Branch: master
Commit: 4c3586ca7a4d84d331afa5397c26bf263582daef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4c3586ca7a4d84d331afa5397c26bf263582daef
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Jan 4 13:03:42 2016 +0100
wined3d: Reorder WINED3DSIH values alphabetically in shader_glsl_map2gl().
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/glsl_shader.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 9c65ae4..e2d16b5 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -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 = "";
More information about the wine-cvs
mailing list