Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0609e41 authored by Romain Guy's avatar Romain Guy
Browse files

Ensure we have an EGL context when building layers

Bug #5638421

This bug was introduced by the recent changes that force more frequent
flushes of the GL renderer.

Change-Id: I55dd4ace6ba1e70ab41927150d6c60c37d7fb196
parent 7859c184
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -10140,7 +10140,11 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
        switch (mLayerType) {
            case LAYER_TYPE_HARDWARE:
                if (mAttachInfo.mHardwareRenderer != null &&
                        mAttachInfo.mHardwareRenderer.isEnabled() &&
                        mAttachInfo.mHardwareRenderer.validate()) {
                    getHardwareLayer();
                }
                break;
            case LAYER_TYPE_SOFTWARE:
                buildDrawingCache(true);