Skip to content

Commit

Permalink
fix bug when changing obj files bvh didn't load properly
Browse files Browse the repository at this point in the history
  • Loading branch information
gallickgunner committed Mar 28, 2020
1 parent ddcf5a5 commit 46383af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/BVH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ namespace yune

void BVH::createBVH(AABB root, const std::vector<TriangleCPU>& cpu_tri_list, int bvh_bins)
{
if(bvh_bins == bins && !gpu_node_list.empty())
return;

clearValues();
bins = bvh_bins;

Expand Down
2 changes: 1 addition & 1 deletion src/RendererGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace yune {
);
cl_manager.setup();
bool kernel_loaded = false;
kernel_loaded = cl_manager.createRenderProgram("udpt.cl", "./kernels/legacy/udpt-primitives.cl", false);
kernel_loaded = cl_manager.createRenderProgram("udpt-primitives.cl", "./kernels/legacy/udpt-primitives.cl", false);
kernel_loaded &= cl_manager.createPostProcProgram("tonemap.cl", "./kernels/post-proc/tonemap.cl", false);
if(kernel_loaded)
{
Expand Down

0 comments on commit 46383af

Please sign in to comment.