summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/gpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/libs/EGL/gpu.cpp')
-rw-r--r--opengl/libs/EGL/gpu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/opengl/libs/EGL/gpu.cpp b/opengl/libs/EGL/gpu.cpp
index 3f9fd63..4c902c8 100644
--- a/opengl/libs/EGL/gpu.cpp
+++ b/opengl/libs/EGL/gpu.cpp
@@ -53,7 +53,7 @@ namespace android {
static Mutex gRegionsLock;
static request_gpu_t gRegions;
static sp<ISurfaceComposer> gSurfaceManager;
-ISurfaceComposer* GLES_localSurfaceManager = 0;
+GL_API ISurfaceComposer* GLES_localSurfaceManager = 0;
extern egl_connection_t gEGLImpl[2];
@@ -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));