提交 64de8934 编写于 作者: M Matt Pharr

GPU: fix allocation of apertureImage for RealisticCamera

上级 c1b3021a
......@@ -1373,7 +1373,7 @@ RealisticCamera *RealisticCamera::Create(const ParameterDictionary &parameters,
};
std::string apertureName = ResolveFilename(parameters.GetOneString("aperture", ""));
Image apertureImage;
Image apertureImage(alloc);
if (!apertureName.empty()) {
// built-in diaphragm shapes
if (apertureName == "gaussian") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册