diff options
| author | 2009-05-20 17:58:36 -0700 | |
|---|---|---|
| committer | 2009-05-20 17:58:36 -0700 | |
| commit | 5c846bd6cfa2d8fd71c19f15f07c495cd397290b (patch) | |
| tree | adccdc119aa0084bac3d9a0f5156bffbabb01aac | |
| parent | e6af9624ea5aef381c14b4fb7e7c92a11ad64bb7 (diff) | |
make sure to fail to software when the h/w renderer cannot be initialized
| -rw-r--r-- | opengl/libs/EGL/gpu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/gpu.cpp b/opengl/libs/EGL/gpu.cpp index f9dc5f1721..4c902c8574 100644 --- a/opengl/libs/EGL/gpu.cpp +++ b/opengl/libs/EGL/gpu.cpp @@ -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)); |