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

Commit 5c846bd6 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

make sure to fail to software when the h/w renderer cannot be initialized

parent e6af9624
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -118,6 +118,11 @@ request_gpu_t* gpu_acquire(void* user)
        return 0;
    }

    if (info.regs == 0) {
        LOGD("requestGPU() failed");
        return 0;
    }

    bool failed = false;
    request_gpu_t* gpu = &gRegions;
    memset(gpu, 0, sizeof(*gpu));