From 7c134774c3fe3b0ad786b9012e5ab5a22fa81285 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Sat, 18 Jul 2020 13:08:28 -0700 Subject: [PATCH] sculpture view cleanup --- src/app/editor/panels/foldhaus_panel_sculpture_view.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/editor/panels/foldhaus_panel_sculpture_view.h b/src/app/editor/panels/foldhaus_panel_sculpture_view.h index 415886d..8ac383a 100644 --- a/src/app/editor/panels/foldhaus_panel_sculpture_view.h +++ b/src/app/editor/panels/foldhaus_panel_sculpture_view.h @@ -150,7 +150,6 @@ SculptureView_Render(panel Panel, rect2 PanelBounds, render_command_buffer* Rend { led_buffer* LedBuffer = LedSystemGetBuffer(&State->LedSystem, BufferIndex); u32 JobsNeeded = U32DivideRoundUp(LedBuffer->LedCount, MaxLEDsPerJob); - u32 NextLEDIndex = 0; for (u32 Job = 0; Job < JobsNeeded; Job++) { @@ -177,7 +176,6 @@ SculptureView_Render(panel Panel, rect2 PanelBounds, render_command_buffer* Rend // needs to relyon the window bounds rather than the panel bounds. Ideally the panel only needs to know where // itself is, and nothing else. PushRenderOrthographic(RenderBuffer, State->WindowBounds); - if (State->Assemblies.Count > 0) { assembly Assembly = State->Assemblies.Values[0]; @@ -198,7 +196,6 @@ SculptureView_Render(panel Panel, rect2 PanelBounds, render_command_buffer* Rend v2 BoxMax = LedOnScreenPosition + BoxHalfDim; PushRenderBoundingBox2D(RenderBuffer, BoxMin, BoxMax, 2.0f, TealV4); } - Context.GeneralWorkQueue->CompleteQueueWork(Context.GeneralWorkQueue, Context.ThreadContext); }