glsl: Allow overloading of built-ins without hiding in GLSL ES.

The rules are explicitly different from desktop GLSL.
This commit is contained in:
Kenneth Graunke 2010-09-05 01:51:28 -07:00
parent f412fac5b4
commit a98d5a5ac8
1 changed files with 1 additions and 1 deletions

View File

@ -2279,7 +2279,7 @@ ast_function::hir(exec_list *instructions,
* that the previously seen signature does not have an associated definition.
*/
f = state->symbols->get_function(name);
if (f != NULL && !f->has_builtin_signature()) {
if (f != NULL && (state->es_shader || !f->has_builtin_signature())) {
sig = f->exact_matching_signature(&hir_parameters);
if (sig != NULL) {
const char *badvar = sig->qualifiers_match(&hir_parameters);