From 6371580f510f410cdf61671ad8c0cb4d9bb9e399 Mon Sep 17 00:00:00 2001 From: Laura Hermanns Date: Tue, 3 Jan 2023 14:19:42 -0500 Subject: [PATCH] Fixed typo in CompilerGLSL::should_dereference() --- spirv_glsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 2f9276e1..4638a7dd 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -10092,7 +10092,7 @@ bool CompilerGLSL::should_dereference(uint32_t id) // same type. Can't check type.self, because for some reason that's // usually the base type with pointers stripped off. This check is // complex enough that I've hoisted it out of the while condition. - if (src_type.pointer != type.pointer || src_type.pointer_depth != type.pointer || + if (src_type.pointer != type.pointer || src_type.pointer_depth != type.pointer_depth || src_type.parent_type != type.parent_type) break; if ((var = maybe_get(expr->loaded_from)))