Переглянути джерело

glsl/es: precision qualifier doesn't need to match in UBOs

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 <siglesias@igalia.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
tags/18.0-branchpoint
Samuel Iglesias Gonsálvez 7 роки тому
джерело
коміт
fc6d55952d
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      src/compiler/glsl/link_interface_blocks.cpp

+ 1
- 1
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;

Завантаження…
Відмінити
Зберегти