diff options
author | Kenneth Graunke <[email protected]> | 2010-09-01 20:03:17 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-01 20:39:09 -0700 |
commit | f32d3df8ab2b7c6c746f46870edc4b284cea50ca (patch) | |
tree | 10c3441a07751ca6d8cac0c42078f8f3cc480a56 /src/glsl/ast_to_hir.cpp | |
parent | 43a6200f3c3fb29d2e9654a293b2328cd6c0f64f (diff) |
glsl: Apply implicit conversions to structure constructor parameters.
The code for handling implicit conversions should probably get
refactored, but for now, this is easy.
Fixes piglit test constructor-26.vert.
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 5bdf3da3676..762f802c2b7 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -97,7 +97,7 @@ _mesa_ast_to_hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) * If a conversion is possible (or unnecessary), \c true is returned. * Otherwise \c false is returned. */ -static bool +bool apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, struct _mesa_glsl_parse_state *state) { |