Merge "Abort surface composition if hw surface is invalid"
This commit is contained in:
commit
e8fed71da2
@ -1520,7 +1520,11 @@ void SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const
|
||||
|
||||
const bool hasGlesComposition = hwc.hasGlesComposition(id) || (cur==end);
|
||||
if (hasGlesComposition) {
|
||||
DisplayDevice::makeCurrent(mEGLDisplay, hw, mEGLContext);
|
||||
if (!DisplayDevice::makeCurrent(mEGLDisplay, hw, mEGLContext)) {
|
||||
ALOGW("DisplayDevice::makeCurrent failed. Aborting surface composition for display %s",
|
||||
hw->getDisplayName().string());
|
||||
return;
|
||||
}
|
||||
|
||||
// set the frame buffer
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
Loading…
Reference in New Issue
Block a user