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

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

Wallpaper software rendering fallback

Bug #8230579

If the wallpaper fails to render with OpenGL, fall back to software
rendering instead of throwing an exception and crashing the wallpaper.

Change-Id: I40ed6056e6ea09b92b6cd441f16101dcc296fb8e
parent 00e59227
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -485,14 +485,12 @@ public class ImageWallpaper extends WallpaperService {

            glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

            if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
                throw new RuntimeException("Cannot swap buffers");
            }
            boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
            checkEglError();

            finishGL();

            return true;
            return status;
        }

        private FloatBuffer createMesh(int left, int top, float right, float bottom) {