mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Added back GlResource::ensureGlContext() for ABI compatibility.
This commit is contained in:
parent
b74391cf97
commit
303d07976c
@ -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
|
||||
///
|
||||
|
@ -72,6 +72,13 @@ GlResource::~GlResource()
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void GlResource::ensureGlContext()
|
||||
{
|
||||
// Empty function for ABI compatibility, use acquireTransientContext instead
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
GlResource::TransientContextLock::TransientContextLock() :
|
||||
m_context(0)
|
||||
|
Loading…
Reference in New Issue
Block a user