Added back GlResource::ensureGlContext() for ABI compatibility.

This commit is contained in:
Lukas Dürrenberger 2016-10-24 14:09:14 +02:00
parent b74391cf97
commit 303d07976c
2 changed files with 13 additions and 0 deletions

View File

@ -57,6 +57,12 @@ protected:
////////////////////////////////////////////////////////////
~GlResource();
////////////////////////////////////////////////////////////
/// \brief Empty function for ABI compatibility, use acquireTransientContext instead
///
////////////////////////////////////////////////////////////
static void ensureGlContext();
////////////////////////////////////////////////////////////
/// \brief RAII helper class to temporarily lock an available context for use
///

View File

@ -72,6 +72,13 @@ GlResource::~GlResource()
}
////////////////////////////////////////////////////////////
void GlResource::ensureGlContext()
{
// Empty function for ABI compatibility, use acquireTransientContext instead
}
////////////////////////////////////////////////////////////
GlResource::TransientContextLock::TransientContextLock() :
m_context(0)