make sure to fail to software when the h/w renderer cannot be initialized

This commit is contained in:
Mathias Agopian
2009-05-20 17:58:36 -07:00
parent b204d4f127
commit 16da7959a0

View File

@@ -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));