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/hw_texture_ios.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drape/hw_texture_ios.mm') diff --git a/drape/hw_texture_ios.mm b/drape/hw_texture_ios.mm index 17a9526f80..fb992423c2 100644 --- a/drape/hw_texture_ios.mm +++ b/drape/hw_texture_ios.mm @@ -171,7 +171,8 @@ void HWTextureApple::Create(ref_ptr context, Params const & Unlock(); } -void HWTextureApple::UploadData(uint32_t x, uint32_t y, uint32_t width, uint32_t height, ref_ptr data) +void HWTextureApple::UploadData(ref_ptr context, uint32_t x, uint32_t y, + uint32_t width, uint32_t height, ref_ptr data) { uint8_t bytesPerPixel = GetBytesPerPixel(GetFormat()); Lock(); @@ -197,8 +198,9 @@ void HWTextureApple::UploadData(uint32_t x, uint32_t y, uint32_t width, uint32_t Unlock(); } -void HWTextureApple::Bind() const +void HWTextureApple::Bind(ref_ptr context) const { + UNUSED_VALUE(context); ASSERT(Validate(), ()); if (m_textureID != 0) GLFunctions::glBindTexture(GetID()); -- cgit v1.2.3