Merge pull request #30331 from mbrlabs/gles2-bool-fix

Prevent GLES2 bool uniforms from having a precision type set.
This commit is contained in:
Rémi Verschelde 2019-07-05 07:51:45 +02:00 committed by GitHub
commit ed96e4a20f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ String ShaderCompilerGLES2::_dump_node_code(SL::Node *p_node, int p_level, Gener
// use highp if no precision is specified to prevent different default values in fragment and vertex shader // use highp if no precision is specified to prevent different default values in fragment and vertex shader
SL::DataPrecision precision = E->get().precision; SL::DataPrecision precision = E->get().precision;
if (precision == SL::PRECISION_DEFAULT) { if (precision == SL::PRECISION_DEFAULT && E->get().type != SL::TYPE_BOOL) {
precision = SL::PRECISION_HIGHP; precision = SL::PRECISION_HIGHP;
} }