diff options
author | Brian Paul <brianp@vmware.com> | 2012-11-04 16:43:44 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-11-06 07:42:37 -0700 |
commit | e9dd5895dd1efbe08138c1ef03be05c00b991a15 (patch) | |
tree | d0f47c7c5d76922e62278114138c3a101aa600a7 /src/glsl | |
parent | c3466315c004302b924e346ceab019ef8b446635 (diff) | |
download | external_mesa3d-e9dd5895dd1efbe08138c1ef03be05c00b991a15.zip external_mesa3d-e9dd5895dd1efbe08138c1ef03be05c00b991a15.tar.gz external_mesa3d-e9dd5895dd1efbe08138c1ef03be05c00b991a15.tar.bz2 |
glsl: add 'f' suffix to floats to silence MSVC warnings
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 1c7aada..7b0a487 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -780,7 +780,7 @@ ir_constant::get_float_component(unsigned i) const case GLSL_TYPE_UINT: return (float) this->value.u[i]; case GLSL_TYPE_INT: return (float) this->value.i[i]; case GLSL_TYPE_FLOAT: return this->value.f[i]; - case GLSL_TYPE_BOOL: return this->value.b[i] ? 1.0 : 0.0; + case GLSL_TYPE_BOOL: return this->value.b[i] ? 1.0f : 0.0f; default: assert(!"Should not get here."); break; } |