From: Mikko Rasa Date: Thu, 6 Oct 2022 10:48:26 +0000 (+0300) Subject: Add an internal error for invalid equality comparison in SPIR-V X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2151e4a005fa39ac909457176fb33dd2e816d6f9;p=libs%2Fgl.git Add an internal error for invalid equality comparison in SPIR-V --- diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index 404ffaf3..6d52c20e 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -917,9 +917,10 @@ void SpirVGenerator::visit(BinaryExpression &binary) compare_id = write_construct(bool_vec_type_id, column_ids, n_elems); } + else + throw internal_error("unsupported types for non-scalar equality comparison"); - if(compare_id) - r_expression_result_id = write_expression(combine_op, result_type_id, compare_id); + r_expression_result_id = write_expression(combine_op, result_type_id, compare_id); return; } }