提交 6db262c2 编写于 作者: M Matt Pharr

Fix Windows build break.

Issue #131.
上级 72b749ed
......@@ -111,7 +111,7 @@ class WavefrontPathIntegrator {
void Do(const char *description, F &&func) {
if (Options->useGPU)
#ifdef PBRT_BUILD_GPU_RENDERER
GPUParallelFor(description, 1, [=] PBRT_GPU(int) { func(); });
GPUParallelFor(description, 1, [=] PBRT_GPU(int) mutable { func(); });
#else
LOG_FATAL("Options->useGPU was set without PBRT_BUILD_GPU_RENDERER enabled");
#endif
......
......@@ -121,7 +121,7 @@ void ForAllQueued(const char *desc, const WorkQueue<WorkItem> *q, int maxQueued,
if (Options->useGPU) {
// Launch GPU threads to process _q_ using _func_
#ifdef PBRT_BUILD_GPU_RENDERER
GPUParallelFor(desc, maxQueued, [=] PBRT_GPU(int index) {
GPUParallelFor(desc, maxQueued, [=] PBRT_GPU(int index) mutable {
if (index >= q->Size())
return;
func((*q)[index]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册