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();
|
||||
|
||||
// Deactivate the current context
|
||||
const EGLContext currentContext = eglCheck(eglGetCurrentContext());
|
||||
|
||||
if (currentContext == m_context)
|
||||
if (eglCheck(eglGetCurrentContext()) == m_context)
|
||||
{
|
||||
eglCheck(eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user