Skip to content

Commit cb26909

Browse files
committed
sharo
1 parent aaad5f6 commit cb26909

File tree

4 files changed

+1
-230
lines changed

4 files changed

+1
-230
lines changed

Resources/CornellBox/monkey.mtl

Lines changed: 0 additions & 22 deletions
This file was deleted.

Resources/CornellBox/orig.mtl

Lines changed: 0 additions & 75 deletions
This file was deleted.

Resources/CornellBox/orig.objm

Lines changed: 0 additions & 132 deletions
This file was deleted.

Tutorials/CornellBoxShadow/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ void Trace() {
311311
const int k_raypack_size = g_window_height * g_window_width;
312312
// Prepare rays. One for each texture pixel.
313313
CLWBuffer<ray> ray_buffer_cl = GeneratePrimaryRays();
314+
Buffer* ray_buffer = CreateFromOpenClBuffer(g_api, ray_buffer_cl);
314315
// Intersection data
315316
CLWBuffer<Intersection> isect_buffer_cl = CLWBuffer<Intersection>::Create(g_context, CL_MEM_READ_WRITE, g_window_width*g_window_height);
316317
Buffer* isect_buffer = CreateFromOpenClBuffer(g_api, isect_buffer_cl);
317-
Buffer* ray_buffer = CreateFromOpenClBuffer(g_api, ray_buffer_cl);
318318

319319
// Intersection
320320
g_api->QueryIntersection(ray_buffer, k_raypack_size, isect_buffer, nullptr, nullptr);

0 commit comments

Comments
 (0)