Browse Source

Merge pull request #42962 from Chaosus/fix_shader_texture_funcs

Fix textureSize & texelFetch shader compilation errors
Yuri Roubinsky 4 years ago
parent
commit
c97dea47b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      servers/rendering/rasterizer_rd/shader_compiler_rd.cpp

+ 2 - 0
servers/rendering/rasterizer_rd/shader_compiler_rd.cpp

@@ -1295,6 +1295,8 @@ void ShaderCompilerRD::initialize(DefaultIdentifierActions p_actions) {
 	texture_functions.insert("textureLod");
 	texture_functions.insert("textureLod");
 	texture_functions.insert("textureProjLod");
 	texture_functions.insert("textureProjLod");
 	texture_functions.insert("textureGrad");
 	texture_functions.insert("textureGrad");
+	texture_functions.insert("textureSize");
+	texture_functions.insert("texelFetch");
 }
 }
 
 
 ShaderCompilerRD::ShaderCompilerRD() {
 ShaderCompilerRD::ShaderCompilerRD() {