Bug 725143 - crash when restarting b2g with screen off [r=gal]

This commit is contained in:
Fabrice Desré 2012-02-20 09:24:57 -08:00
parent 99c07b75c9
commit e6c922623e

View File

@ -78,6 +78,9 @@ static bool sFramebufferOpen;
nsWindow::nsWindow()
{
if (!sGLContext && !sFramebufferOpen) {
// workaround Bug 725143
hal::SetScreenEnabled(true);
// We (apparently) don't have a way to tell if allocating the
// fbs succeeded or failed.
gNativeWindow = new android::FramebufferNativeWindow();