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/texture.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drape/texture.hpp') diff --git a/drape/texture.hpp b/drape/texture.hpp index aede9bbfcb..fd6ecff9b4 100644 --- a/drape/texture.hpp +++ b/drape/texture.hpp @@ -59,7 +59,7 @@ public: virtual float GetT(uint32_t y) const; virtual uint32_t GetID() const; - virtual void Bind() const; + virtual void Bind(ref_ptr context) const; // Texture must be bound before calling this method. virtual void SetFilter(TextureFilter filter); @@ -67,8 +67,8 @@ public: virtual void Create(ref_ptr context, Params const & params); virtual void Create(ref_ptr context, Params const & params, ref_ptr data); - void UploadData(uint32_t x, uint32_t y, uint32_t width, uint32_t height, - ref_ptr data); + void UploadData(ref_ptr context, uint32_t x, uint32_t y, + uint32_t width, uint32_t height, ref_ptr data); ref_ptr GetHardwareTexture() const; -- cgit v1.2.3