glsl: Remove GLSL_TYPE_FUNCTION define.
Functions are not first class objects in GLSL, so there is never a value of function type. No code actually used this except for one function which asserted it shouldn't occur. One comment mentioned it, but was incorrect. So we may as well remove it entirely.
This commit is contained in:
parent
62fe9c4efc
commit
ee36f14fa5
2 changed files with 2 additions and 9 deletions
|
|
@ -70,7 +70,6 @@ type_compare(const glsl_type *a, const glsl_type *b)
|
|||
*/
|
||||
return (type_compare(a->fields.array, b->fields.array) == 0) ? 0 : -1;
|
||||
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
case GLSL_TYPE_VOID:
|
||||
case GLSL_TYPE_ERROR:
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue