Removed useless precision highp sampler2DArray (#3031)

Co-authored-by: Issam <issam.dahmen@fittingbox.com>
This commit is contained in:
issam3105
2023-02-02 18:14:22 +01:00
committed by GitHub
parent 6f36b4fb3a
commit 10ec8e8882

View File

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