Module: wine Branch: master Commit: f03de9ac4c3c85fc91dcbb1126ea5d1bad212358 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f03de9ac4c3c85fc91dcbb1126...
Author: Paul Gofman gofmanp@gmail.com Date: Mon May 22 13:24:11 2017 +0200
d3dx9: Fix NAN handling in 'cmp' preshader opcode.
Signed-off-by: Paul Gofman gofmanp@gmail.com Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3dx9_36/preshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/preshader.c b/dlls/d3dx9_36/preshader.c index 50ab18f..40a86fa 100644 --- a/dlls/d3dx9_36/preshader.c +++ b/dlls/d3dx9_36/preshader.c @@ -102,7 +102,7 @@ static double pres_ge(double *args, int n) {return args[0] >= args[1] ? 1.0 : 0 static double pres_frc(double *args, int n) {return args[0] - floor(args[0]);} static double pres_min(double *args, int n) {return fmin(args[0], args[1]);} static double pres_max(double *args, int n) {return fmax(args[0], args[1]);} -static double pres_cmp(double *args, int n) {return args[0] < 0.0 ? args[2] : args[1];} +static double pres_cmp(double *args, int n) {return args[0] >= 0.0 ? args[1] : args[2];} static double pres_sin(double *args, int n) {return sin(args[0]);} static double pres_cos(double *args, int n) {return cos(args[0]);} static double pres_rsq(double *args, int n)