Fixed TriLight struct declaration bug

This commit is contained in:
Magnus Norddahl 2016-12-21 18:48:26 +01:00
parent 22f07b06cd
commit 6fe124d937

View file

@ -338,7 +338,7 @@ llvm::Type *LLVMDrawers::GetTriLightStruct(llvm::LLVMContext &context)
std::vector<llvm::Type *> elements; std::vector<llvm::Type *> elements;
elements.push_back(llvm::Type::getInt32Ty(context)); elements.push_back(llvm::Type::getInt32Ty(context));
for (int i = 0; i < 4 + TriVertex::NumVarying; i++) for (int i = 0; i < 4; i++)
elements.push_back(llvm::Type::getFloatTy(context)); elements.push_back(llvm::Type::getFloatTy(context));
TriLightStruct = llvm::StructType::create(context, elements, "TriLight", false)->getPointerTo(); TriLightStruct = llvm::StructType::create(context, elements, "TriLight", false)->getPointerTo();
return TriLightStruct; return TriLightStruct;