From 16f3ae673804749c4fa99000b9c505805bdc3bbc Mon Sep 17 00:00:00 2001 From: rachytski Date: Tue, 7 Feb 2012 17:52:12 +0400 Subject: [PATCH] should exit from BaseTexture::makeCurrent when it's called with non-null glQueue --- yg/base_texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yg/base_texture.cpp b/yg/base_texture.cpp index 6515337e80..63bcff9d7e 100644 --- a/yg/base_texture.cpp +++ b/yg/base_texture.cpp @@ -79,7 +79,10 @@ namespace yg void BaseTexture::makeCurrent(yg::gl::PacketsQueue * queue) const { if (queue) + { queue->processFn(bind(&BaseTexture::makeCurrent, this, (yg::gl::PacketsQueue*)0)); + return; + } #ifndef OMIM_OS_ANDROID if (current() != m_id)