From 04c0ffbab4df4bee1e229474787b98feb4d6ae06 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Thu, 16 Aug 2018 18:48:20 +0300 Subject: Review fixes. --- drape/render_state.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'drape/render_state.cpp') diff --git a/drape/render_state.cpp b/drape/render_state.cpp index 93ea2a52f1..a6efc153b7 100644 --- a/drape/render_state.cpp +++ b/drape/render_state.cpp @@ -14,14 +14,14 @@ glConst DecodeTestFunction(TestFunction depthFunction) { switch (depthFunction) { - case TestFunction::Never: return gl_const::GLNever; - case TestFunction::Less: return gl_const::GLLess; - case TestFunction::Equal: return gl_const::GLEqual; - case TestFunction::LessOrEqual: return gl_const::GLLessOrEqual; - case TestFunction::Greater: return gl_const::GLGreat; - case TestFunction::NotEqual: return gl_const::GLNotEqual; - case TestFunction::GreaterOrEqual: return gl_const::GLGreatOrEqual; - case TestFunction::Always: return gl_const::GLAlways; + case TestFunction::Never: return gl_const::GLNever; + case TestFunction::Less: return gl_const::GLLess; + case TestFunction::Equal: return gl_const::GLEqual; + case TestFunction::LessOrEqual: return gl_const::GLLessOrEqual; + case TestFunction::Greater: return gl_const::GLGreat; + case TestFunction::NotEqual: return gl_const::GLNotEqual; + case TestFunction::GreaterOrEqual: return gl_const::GLGreatOrEqual; + case TestFunction::Always: return gl_const::GLAlways; } CHECK_SWITCH(); } @@ -215,7 +215,7 @@ void ApplyBlending(RenderState const & state) state.GetBlending().Apply(); } -void ApplyState(RenderState const & state, ref_ptr context, ref_ptr program) +void ApplyState(ref_ptr context, ref_ptr program, RenderState const & state) { TextureState::ApplyTextures(state, program); ApplyBlending(state); -- cgit v1.2.3