From b0e72319c44c26fb917ba63ce12a3a0401635f45 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Tue, 26 Feb 2013 21:31:47 -0800 Subject: [PATCH] Fixed GCC Linux warnings. --- examples/09-hdr/hdr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 48b74566..9a3e96cb 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -16,6 +16,7 @@ #include #include #include +#include static const char* s_shaderPath = NULL; @@ -368,7 +369,7 @@ void setOffsets2x2Lum(bgfx::UniformHandle _handle, uint32_t _width, uint32_t _he for (uint32_t xx = 0; xx < 3; ++xx) { offsets[num][0] = (xx - s_texelHalf) * du; - offsets[num][1] = (yy - s_texelHalf) * du; + offsets[num][1] = (yy - s_texelHalf) * dv; ++num; } } @@ -389,7 +390,7 @@ void setOffsets4x4Lum(bgfx::UniformHandle _handle, uint32_t _width, uint32_t _he for (uint32_t xx = 0; xx < 4; ++xx) { offsets[num][0] = (xx - 1.0f - s_texelHalf) * du; - offsets[num][1] = (yy - 1.0f - s_texelHalf) * du; + offsets[num][1] = (yy - 1.0f - s_texelHalf) * dv; ++num; } }