Browse Source

Removed useless precision highp sampler2DArray (#3031)

Co-authored-by: Issam <[email protected]>
issam3105 2 years ago
parent
commit
10ec8e8882
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/shaderc/shaderc.cpp

+ 1 - 1
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");
 									}