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

Commit c7412b3b authored by Jason Sams's avatar Jason Sams
Browse files

Minor bug fixes and add glError check.

parent 6a17e163
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -145,6 +145,12 @@ bool Context::runRootScript()
    }
    mStateFragmentStore.mLast.clear();
    bool ret = runScript(mRootScript.get(), 0);

    GLenum err = glGetError();
    if (err != GL_NO_ERROR) {
        LOGE("Pending GL Error, 0x%x", err);
    }

    return ret;
}

+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ void ProgramRaster::setupGL(const Context *rsc, ProgramRasterState *state)
    if (mLineSmooth) {
        glEnable(GL_LINE_SMOOTH);
    } else {
        glEnable(GL_LINE_SMOOTH);
        glDisable(GL_LINE_SMOOTH);
    }

    if (rsc->checkVersion1_1()) {