Skip to content

Commit

Permalink
Revise build error on LLVM Clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsy committed Mar 15, 2016
1 parent 64ec47f commit 9883df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sources/bxdf/bssrdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SPICA_EXPORTS SeparableBSSRDF : public BSSRDF {
// Public methods
SeparableBSSRDF(const SurfaceInteraction& po, double eta,
const Material* material);
Spectrum S(const SurfaceInteraction& pi, const Vector3d& wi) const;
Spectrum S(const SurfaceInteraction& pi, const Vector3d& wi) const override;
Spectrum sample(const Scene& scene, double rand1, const Point2d& rand2,
MemoryArena& arena, SurfaceInteraction* po,
double* pdf) const override;
Expand Down
4 changes: 1 addition & 3 deletions test/test_scene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ TEST_P(SceneIntersectionTest, BBVHvsQBVH) {
Ray ray(f, dir);

SurfaceInteraction isect1, isect2;
EXPECT_EQ(scene1.intersect(ray), scene2.intersect(ray)) <<
"org : " << ray.org() << std::endl <<
"dir : " << ray.dir() << std::endl;
EXPECT_EQ(scene1.intersect(ray), scene2.intersect(ray));
EXPECT_EQ(scene1.intersect(ray, &isect1), scene2.intersect(ray, &isect2));
EXPECT_EQ(isect1.primitive(), isect2.primitive());
EXPECT_EQ(isect1.pos(), isect2.pos());
Expand Down

0 comments on commit 9883df9

Please sign in to comment.