From 9f02999947f5067535abad3fc2c2b016549c30da Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 7 Apr 2024 10:00:08 +0100 Subject: [PATCH] Remove `Renderer` field from GraphicsFunContext - Only decorationsEnable & blackDecorations were ever read, graphics update functions shouldn't really be aware of the renderer. - `sim` should ideally not be there either, but `luaGraphicsWrapper` has more going on to sort out - Re-format previous commit with tabs instead of spaces --- src/graphics/Renderer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/Renderer.h b/src/graphics/Renderer.h index ec8a5e2a4..c0c2d91ca 100644 --- a/src/graphics/Renderer.h +++ b/src/graphics/Renderer.h @@ -19,8 +19,8 @@ struct Particle; struct GraphicsFuncContext { const Simulation *sim; - bool decorationsEnable; - bool blackDecorations; + bool decorationsEnable; + bool blackDecorations; RNG rng; const Particle *pipeSubcallCpart; Particle *pipeSubcallTpart;