[Mesa-dev] [PATCH] glsl/ast: don't implicit convert from double to float

2015-05-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Implicit conversion can only happen the other way. This fixes a bug I just saw from writing an incorrect test. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ast_to_hir.cpp | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] glsl/ast: don't implicit convert from double to float

2015-05-06 Thread Tapani Pälli
This seems to be used in ast_function.cpp for implementing constructors where this type of conversion can happen, so not a implicit conversion but a 'conversion constructor'. (5.4.1 Conversion and Scalar Constructors) You would need to change that also. On 05/06/2015 09:17 AM, Dave Airlie