Skip to content

Commit

Permalink
fixed processLazyNode for Subdivs
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenthin committed Oct 15, 2016
1 parent f171365 commit c062ea2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions kernels/geometry/subdivpatch1cached_intersector1.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ namespace embree
auto alloc = [] (const size_t bytes) { return SharedLazyTessellationCache::sharedLazyTessellationCache.malloc(bytes); };
return GridSOA::create((SubdivPatch1Base*)prim,(unsigned)scene->getSubdivMesh(prim->geom)->numTimeSteps,pre.numTimeSteps(),scene,alloc);
});
if (grid == nullptr)
SharedLazyTessellationCache::sharedLazyTessellationCache.unlock();

} while(grid == nullptr);
}
else {
Expand Down
1 change: 1 addition & 0 deletions tutorials/viewer_stream/viewer_stream_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ extern "C" void device_init (char* cfg)

/* create scene */
g_scene = convertScene(g_ispc_scene);

rtcCommit (g_scene);

/* set render tile function to use */
Expand Down

0 comments on commit c062ea2

Please sign in to comment.