Browse Source

Prevents shader crash on GLES2 if unsupported built-in has been used

Yuri Roubinsky 6 years ago
parent
commit
1b003f3d64
2 changed files with 677 additions and 693 deletions
  1. 675 692
      servers/visual/shader_language.cpp
  2. 2 1
      servers/visual/shader_language.h

File diff suppressed because it is too large
+ 675 - 692
servers/visual/shader_language.cpp


+ 2 - 1
servers/visual/shader_language.h

@@ -715,7 +715,7 @@ private:
 
 	enum SubClassTag {
 		TAG_GLOBAL,
-		TAG_ARRAY
+		TAG_ARRAY,
 	};
 
 	struct BuiltinFuncDef {
@@ -724,6 +724,7 @@ private:
 		DataType rettype;
 		const DataType args[MAX_ARGS];
 		SubClassTag tag;
+		bool high_end;
 	};
 
 	struct BuiltinFuncOutArgs { //arguments used as out in built in functions

Some files were not shown because too many files changed in this diff