diff --git a/src/graphics.cpp b/src/graphics.cpp index 4d7eb59..5730cfb 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -169,15 +169,15 @@ public: } } - void requestViewportRender(Vec4 &c, Vec4 &f, Vec4 &t) + void requestViewportRender(const Vec4 &c, const Vec4 &f, const Vec4 &t) { const IntRect &viewpRect = glState.scissorBox.get(); const IntRect &screenRect = geometry.rect; - bool toneRGBEffect = t.xyzHasEffect(); - bool toneGrayEffect = t.w != 0; - bool colorEffect = c.w > 0; - bool flashEffect = f.w > 0; + const bool toneRGBEffect = t.xyzHasEffect(); + const bool toneGrayEffect = t.w != 0; + const bool colorEffect = c.w > 0; + const bool flashEffect = f.w > 0; if (toneGrayEffect) { diff --git a/src/scene.h b/src/scene.h index edee331..7685407 100644 --- a/src/scene.h +++ b/src/scene.h @@ -55,7 +55,9 @@ public: virtual ~Scene(); virtual void composite(); - virtual void requestViewportRender(Vec4& /*color*/, Vec4& /*flash*/, Vec4& /*tone*/) {} + virtual void requestViewportRender(const Vec4& /* color */, + const Vec4& /* flash */, + const Vec4& /* tone */) {} const Geometry &getGeometry() const { return geometry; }