From 5c846bd6cfa2d8fd71c19f15f07c495cd397290b Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 20 May 2009 17:58:36 -0700 Subject: make sure to fail to software when the h/w renderer cannot be initialized --- opengl/libs/EGL/gpu.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- cgit v1.2.3-59-g8ed1b