提交 67a4e928 编写于 作者: M Matt Pharr

GPU: fix textured area lights

上级 da1db73d
......@@ -751,7 +751,7 @@ DiffuseAreaLight *DiffuseAreaLight::Create(const Transform &renderFromLight,
bool twoSided = parameters.GetOneBool("twosided", false);
std::string filename = ResolveFilename(parameters.GetOneString("filename", ""));
Image image;
Image image(alloc);
const RGBColorSpace *imageColorSpace = nullptr;
if (!filename.empty()) {
if (L != nullptr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册