am 141823ec: Merge "Be more conservative about current buffer" into lmp-mr1-dev

automerge: a27e1a3

* commit 'a27e1a366a2d83165e71b68669fbd21ced6a4b08':
  Be more conservative about current buffer
This commit is contained in:
John Reck
2014-10-30 19:16:14 +00:00
committed by android-build-merger

View File

@@ -105,11 +105,10 @@ bool EglManager::hasEglContext() {
void EglManager::requireGlContext() {
LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context");
// We don't care *WHAT* surface is active, just that one is active to give
// us access to the GL context
if (mCurrentSurface == EGL_NO_SURFACE) {
usePBufferSurface();
}
// We can't be certain about the state of the current surface (whether
// or not it is destroyed, for example), so err on the side of using
// the pbuffer surface which we fully control
usePBufferSurface();
}
void EglManager::loadConfig() {