diff options
author | Mathias Agopian <mathias@google.com> | 2009-05-20 17:58:36 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-05-20 17:58:36 -0700 |
commit | 16da7959a072da0d5fdc3a774fa01fb4d811d46f (patch) | |
tree | f06ea8c06f935e8e429e0224825c8fc5bfcbab8b /opengl/libs/EGL | |
parent | b204d4f12773ec67c7f0ded41cb111018f154476 (diff) | |
download | frameworks_base-16da7959a072da0d5fdc3a774fa01fb4d811d46f.zip frameworks_base-16da7959a072da0d5fdc3a774fa01fb4d811d46f.tar.gz frameworks_base-16da7959a072da0d5fdc3a774fa01fb4d811d46f.tar.bz2 |
make sure to fail to software when the h/w renderer cannot be initialized
Diffstat (limited to 'opengl/libs/EGL')
-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 f9dc5f1..4c902c8 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)); |