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:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user