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

Commit 96a7dc08 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "make sure we have a context when creating the 1st surface" into klp-dev

parents 9870c9b6 a6bb1074
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -331,6 +331,11 @@ EGLBoolean egl_init_drivers() {

void gl_unimplemented() {
    ALOGE("called unimplemented OpenGL ES API");
    char value[PROPERTY_VALUE_MAX];
    property_get("debug.egl.callstack", value, "0");
    if (atoi(value)) {
        CallStack stack(LOG_TAG);
    }
}

void gl_noop() {
+4 −0
Original line number Diff line number Diff line
@@ -487,6 +487,10 @@ status_t SurfaceFlinger::readyToRun()
        }
    }

    // make the GLContext current so that we can create textures when creating Layers
    // (which may happens before we render something)
    getDefaultDisplayDevice()->makeCurrent(mEGLDisplay, mEGLContext);

    // start the EventThread
    mEventThread = new EventThread(this);
    mEventQueue.setEventThread(mEventThread);