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

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

Fix native crash when GL driver fails to initialize.

Change-Id: I85714de9029285027dc75fb3b62076be41a4c985
parent 92b0eab0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -693,7 +693,9 @@ RsContext rsContextCreateGL(RsDevice vdev, uint32_t version,
    LOGV("rsContextCreateGL %p", vdev);
    Device * dev = static_cast<Device *>(vdev);
    Context *rsc = Context::createContext(dev, &sc);
    if (rsc) {
        rsc->setDPI(dpi);
    }
    LOGV("rsContextCreateGL ret %p ", rsc);
    return rsc;
}