From f53013310a9ce31e976e7bae78461e57b12cc0d2 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Fri, 18 Jan 2019 17:03:07 +0300 Subject: [drape] Refactored context access in textures, fixed iOS compilation --- drape/render_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drape/render_state.cpp') diff --git a/drape/render_state.cpp b/drape/render_state.cpp index 93ab82baa8..77055cb9d2 100644 --- a/drape/render_state.cpp +++ b/drape/render_state.cpp @@ -210,7 +210,7 @@ void TextureState::ApplyTextures(ref_ptr context, RenderState c if (tex != nullptr && (texLoc = p->GetUniformLocation(texture.first)) >= 0) { GLFunctions::glActiveTexture(gl_const::GLTexture0 + m_usedSlots); - tex->Bind(); + tex->Bind(context); GLFunctions::glUniformValuei(texLoc, m_usedSlots); tex->SetFilter(state.GetTextureFilter()); m_usedSlots++; @@ -225,7 +225,7 @@ void TextureState::ApplyTextures(ref_ptr context, RenderState c } else if (apiVersion == dp::ApiVersion::Vulkan) { - //TODO(@rokuz, @darina): Implement. + //TODO(@rokuz, @darina): Implement. Use Bind! } else { -- cgit v1.2.3