diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 99fc68834..24823c0d4 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -2375,7 +2375,7 @@ namespace bgfx bx::stringPrintf(code, "precision highp int;\n"); } - if (glsl_profile >= 300) + if (glsl_profile >= 300 && usesTextureArray) { bx::stringPrintf(code, "precision highp sampler2DArray;\n"); }