summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-05-20 17:58:36 -0700
committerMathias Agopian <mathias@google.com>2009-05-20 17:58:36 -0700
commit16da7959a072da0d5fdc3a774fa01fb4d811d46f (patch)
treef06ea8c06f935e8e429e0224825c8fc5bfcbab8b /opengl/libs/EGL
parentb204d4f12773ec67c7f0ded41cb111018f154476 (diff)
downloadframeworks_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.cpp5
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));