[Mesa-dev] [PATCH 6/6] glsl: Precision qualifiers are not allowed on structs
Iago Toral Quiroga
itoral at igalia.com
Thu Feb 26 03:15:21 PST 2015
As the comment in precision_qualifier_allowed() says, they are only allowed
for float, integer and sampler types.
---
src/glsl/ast_to_hir.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index df129df..3941554 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2002,7 +2002,6 @@ precision_qualifier_allowed(const glsl_type *type)
*/
return type->is_float()
|| type->is_integer()
- || type->is_record()
|| type->is_sampler();
}
--
1.9.1
More information about the mesa-dev
mailing list