commit | 5c846bd6cfa2d8fd71c19f15f07c495cd397290b | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed May 20 17:58:36 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed May 20 17:58:36 2009 -0700 |
tree | adccdc119aa0084bac3d9a0f5156bffbabb01aac | |
parent | e6af9624ea5aef381c14b4fb7e7c92a11ad64bb7 [diff] |
make sure to fail to software when the h/w renderer cannot be initialized
diff --git a/opengl/libs/EGL/gpu.cpp b/opengl/libs/EGL/gpu.cpp index f9dc5f1..4c902c8 100644 --- a/opengl/libs/EGL/gpu.cpp +++ b/opengl/libs/EGL/gpu.cpp
@@ -118,6 +118,11 @@ return 0; } + if (info.regs == 0) { + LOGD("requestGPU() failed"); + return 0; + } + bool failed = false; request_gpu_t* gpu = &gRegions; memset(gpu, 0, sizeof(*gpu));