commit | bb7b7b316a6a15f4df6af3c62a293920c68c7b00 | [log] [tgz] |
---|---|---|
author | Android (Google) Code Review <android-gerrit@google.com> | Wed May 20 18:00:01 2009 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed May 20 18:00:01 2009 -0700 |
tree | 652a56523b3e2413c672c88de9084fd91ee5321f | |
parent | db2b8015a9123574e58b32d221281c1b75c5d443 [diff] | |
parent | 16da7959a072da0d5fdc3a774fa01fb4d811d46f [diff] |
Merge change 2152 into donut * changes: 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));