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

Commit 595f37c1 authored by Jason Sams's avatar Jason Sams Committed by Android (Google) Code Review
Browse files

Merge "fix bug 3477451 Bogus asserts with pure compute scripts."

parents 5be2b95d 07078e38
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -270,20 +270,24 @@ void Context::deinitEGL() {

Context::PushState::PushState(Context *con) {
    mRsc = con;
    if (con->mIsGraphicsContext) {
        mFragment.set(con->getProgramFragment());
        mVertex.set(con->getProgramVertex());
        mStore.set(con->getProgramStore());
        mRaster.set(con->getProgramRaster());
        mFont.set(con->getFont());
    }
}

Context::PushState::~PushState() {
    if (mRsc->mIsGraphicsContext) {
        mRsc->setProgramFragment(mFragment.get());
        mRsc->setProgramVertex(mVertex.get());
        mRsc->setProgramStore(mStore.get());
        mRsc->setProgramRaster(mRaster.get());
        mRsc->setFont(mFont.get());
    }
}


uint32_t Context::runScript(Script *s) {