We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05cba0 commit 56fb1d2Copy full SHA for 56fb1d2
src/lib/renderer/renderer.c
@@ -366,7 +366,10 @@ void *render_thread_interactive(void *arg) {
366
thread_rwlock_rdlock(r->scene->bvh_lock);
367
for (int y = tile->end.y - 1; y > tile->begin.y - 1; --y) {
368
for (int x = tile->begin.x; x < tile->end.x; ++x) {
369
- if (r->state.s != r_rendering) goto exit;
+ if (r->state.s != r_rendering) {
370
+ thread_rwlock_unlock(r->scene->bvh_lock);
371
+ goto exit;
372
+ }
373
uint32_t pixIdx = (uint32_t)(y * (*buf)->width + x);
374
//FIXME: This does not converge to the same result as with regular renderThread.
375
//I assume that's because we'd have to init the sampler differently when we render all
0 commit comments