From b5b4549b6d80e4a1f45e766161bafd52a064c91d Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Mon, 3 Apr 2017 12:25:36 -0400 Subject: Fix edge case in composite function interpolation (#8613) This fixes a bug where, for a zoom value greater than that of the highest zoom stop, composite function interpolation would return nan. (Blocking a render test over in #8593) * Add failing tests for composite function edge case The failing cases here are: - Should interpolate before the first stop - Should interpolate past the last stop * Fix edge case in composite function interpolation * Hold functions constant outside stop-defined domain --- cmake/test-files.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake') diff --git a/cmake/test-files.cmake b/cmake/test-files.cmake index 951514e38a..dab5b48745 100644 --- a/cmake/test-files.cmake +++ b/cmake/test-files.cmake @@ -87,6 +87,7 @@ set(MBGL_TEST_FILES # style/function test/style/function/camera_function.test.cpp + test/style/function/composite_function.test.cpp test/style/function/source_function.test.cpp # style -- cgit v1.2.1