提交 5d700450 编写于 作者: M Matt Pharr

ParsedScene::CreateLights(): pass Allocator to shapeLights vector constructor

上级 7d4787b5
......@@ -1225,7 +1225,7 @@ std::vector<Light> ParsedScene::CreateLights(
pbrt::MediumInterface mi(findMedium(sh.insideMedium, &sh.loc),
findMedium(sh.outsideMedium, &sh.loc));
pstd::vector<Light> *shapeLights = new pstd::vector<Light>;
pstd::vector<Light> *shapeLights = new pstd::vector<Light>(alloc);
const auto &areaLightEntity = areaLights[sh.lightIndex];
for (pbrt::Shape ps : shapeObjects) {
Light area = Light::CreateArea(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册