From fc6d55952d08ea03d133c1178871b0d4d289a0cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20Iglesias=20Gons=C3=A1lvez?= Date: Thu, 9 Nov 2017 09:58:25 +0100 Subject: [PATCH] glsl/es: precision qualifier doesn't need to match in UBOs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit They might mismatch due to the two shaders using different GLSL versions, and that's ok in desktop GL. In ES, precision qualifiers don't need to match. Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/link_interface_blocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/link_interface_blocks.cpp b/src/compiler/glsl/link_interface_blocks.cpp index 510d4f71bbe..c2c3b58f821 100644 --- a/src/compiler/glsl/link_interface_blocks.cpp +++ b/src/compiler/glsl/link_interface_blocks.cpp @@ -114,7 +114,7 @@ intrastage_match(ir_variable *a, */ if ((a->data.how_declared != ir_var_declared_implicitly || b->data.how_declared != ir_var_declared_implicitly) && - (!prog->IsES || prog->data->Version != 310 || + (!prog->IsES || interstage_member_mismatch(prog, a->get_interface_type(), b->get_interface_type()))) return false; -- 2.30.2