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

Commit 07078e38 authored by Jason Sams's avatar Jason Sams
Browse files

fix bug 3477451

Bogus asserts with pure compute scripts.

Change-Id: If5928c563e06405f75a11606d9148d64fa10be07
parent 3b36ff48
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) {