diff --git a/ctx.cpp b/ctx.cpp index 34de1a17..e82c2877 100644 --- a/ctx.cpp +++ b/ctx.cpp @@ -2876,7 +2876,8 @@ void FunctionEmitContext::storeUniformToSOA(llvm::Value *value, llvm::Value *ptr, llvm::Value *mask, const Type *valueType, const PointerType *ptrType) { - Assert(Type::Equal(ptrType->GetBaseType()->GetAsUniformType(), valueType)); + Assert(Type::EqualIgnoringConst(ptrType->GetBaseType()->GetAsUniformType(), + valueType)); const CollectionType *ct = dynamic_cast(valueType); if (ct != NULL) {