Make Function arguments type-safe.
Change-Id: I3d4262ea4be0c7b1128b2ca410e985cc6f58c9c9
Reviewed-on: https://swiftshader-review.googlesource.com/1970
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Main/FrameBuffer.cpp b/src/Main/FrameBuffer.cpp
index cd387c8..aa3e55f 100644
--- a/src/Main/FrameBuffer.cpp
+++ b/src/Main/FrameBuffer.cpp
@@ -236,8 +236,8 @@
Function<Void(Pointer<Byte>, Pointer<Byte>)> function;
{
- Pointer<Byte> dst(function.arg(0));
- Pointer<Byte> src(function.arg(1));
+ Pointer<Byte> dst(function.Arg<0>());
+ Pointer<Byte> src(function.Arg<1>());
For(Int y = 0, y < height, y++)
{