Fixed typo in CompilerGLSL::should_dereference()

This commit is contained in:
Laura Hermanns 2023-01-03 14:19:42 -05:00
parent a89dea3c49
commit 6371580f51

View File

@ -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<SPIRVariable>(expr->loaded_from)))