summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Rasterizer.h
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-09-23 10:24:55 +0200
committerGitHub <noreply@github.com>2016-09-23 10:24:55 +0200
commit9d85d9b000ee20f65ba7679488465624fcd1cd3a (patch)
tree8bb2f27495e411254fd8474c989667bc7360e859 /Source/Core/VideoBackends/Software/Rasterizer.h
parent2d0e857cb3cd132a082958cbda32aa0b350652d0 (diff)
parent330944eef89a28c08a0227a9a166f583532ae906 (diff)
Merge pull request #4237 from lioncash/const
Software: const correctness
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.h')
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.h b/Source/Core/VideoBackends/Software/Rasterizer.h
index 50308b7449..29fa6d6dee 100644
--- a/Source/Core/VideoBackends/Software/Rasterizer.h
+++ b/Source/Core/VideoBackends/Software/Rasterizer.h
@@ -12,7 +12,8 @@ namespace Rasterizer
{
void Init();
-void DrawTriangleFrontFace(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2);
+void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1,
+ const OutputVertexData* v2);
void SetTevReg(int reg, int comp, s16 color);
@@ -22,7 +23,7 @@ struct Slope
float dfdy;
float f0;
- float GetValue(float dx, float dy) { return f0 + (dfdx * dx) + (dfdy * dy); }
+ float GetValue(float dx, float dy) const { return f0 + (dfdx * dx) + (dfdy * dy); }
};
struct RasterBlockPixel