From 433183147ec4bd11f532117b569e99c3d01d7202 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Wed, 21 Oct 2020 17:45:40 +0300 Subject: [PATCH] Fix textureSize & texelFetch shader compilation errors --- servers/rendering/rasterizer_rd/shader_compiler_rd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/rendering/rasterizer_rd/shader_compiler_rd.cpp b/servers/rendering/rasterizer_rd/shader_compiler_rd.cpp index f70ddbb75a6..946a83dcf83 100644 --- a/servers/rendering/rasterizer_rd/shader_compiler_rd.cpp +++ b/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("textureProjLod"); texture_functions.insert("textureGrad"); + texture_functions.insert("textureSize"); + texture_functions.insert("texelFetch"); } ShaderCompilerRD::ShaderCompilerRD() {