From 8cd14c3d54e817f9ad83966409dd672bcbfb7555 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 9 Jan 2018 00:27:05 +0100 Subject: [PATCH] Another benchmarking data set fix. --- resample_effect_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resample_effect_test.cpp b/resample_effect_test.cpp index 71354f2..a51c51d 100644 --- a/resample_effect_test.cpp +++ b/resample_effect_test.cpp @@ -437,7 +437,7 @@ TEST(ResampleEffectTest, Precision) { } #ifdef HAVE_BENCHMARK -template<> inline uint8_t from_fp32(float x) { return x; } +template<> inline uint8_t from_fp32(float x) { return lrintf(x * 255.0f); } template void BM_ResampleEffect(benchmark::State &state, GammaCurve gamma_curve, GLenum output_format, const std::string &shader_type) -- 2.39.2