Revert "display: Store and restore the current eglContext"

This reverts commit 99ff47d39e.
Context restore is not required as HWC2 runs in hal context.

Change-Id: If12e53f684db6440b8232f5a694220e88842445c
This commit is contained in:
Rajesh Yadav
2017-07-25 15:10:17 +05:30
parent 6482b4bc51
commit 2ab89e14ed
3 changed files with 0 additions and 38 deletions

View File

@@ -46,27 +46,6 @@ void engine_bind(void* context)
EGL(eglMakeCurrent(engineContext->eglDisplay, engineContext->eglSurface, engineContext->eglSurface, engineContext->eglContext));
}
//-----------------------------------------------------------------------------
// store the current context(caller)
void* engine_backup()
{
EngineContext* callerContext = new EngineContext();
// store the previous display/context
callerContext->eglDisplay = eglGetCurrentDisplay();
callerContext->eglContext = eglGetCurrentContext();
callerContext->eglSurface = eglGetCurrentSurface(EGL_DRAW);
return (void*)callerContext;
}
//-----------------------------------------------------------------------------
// frees the backed up caller context
void engine_free_backup(void* context)
{
EngineContext* callerContext = (EngineContext*)(context);
delete callerContext;
}
//-----------------------------------------------------------------------------
// initialize GL
//