mirror of
https://github.com/SFML/SFML.git
synced 2025-02-23 14:56:02 +08:00
Reduce the scope of variables
This commit is contained in:
parent
f2f072333c
commit
efa989aa19
@ -191,9 +191,7 @@ EglContext::~EglContext()
|
|||||||
cleanupUnsharedResources();
|
cleanupUnsharedResources();
|
||||||
|
|
||||||
// Deactivate the current context
|
// Deactivate the current context
|
||||||
const EGLContext currentContext = eglCheck(eglGetCurrentContext());
|
if (eglCheck(eglGetCurrentContext()) == m_context)
|
||||||
|
|
||||||
if (currentContext == m_context)
|
|
||||||
{
|
{
|
||||||
eglCheck(eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
|
eglCheck(eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user