diff --git a/widget/gonk/libdisplay/GonkDisplayJB.cpp b/widget/gonk/libdisplay/GonkDisplayJB.cpp index 5e5353b6324a..043d690b273c 100644 --- a/widget/gonk/libdisplay/GonkDisplayJB.cpp +++ b/widget/gonk/libdisplay/GonkDisplayJB.cpp @@ -47,6 +47,8 @@ GonkDisplayJB::GonkDisplayJB() mWidth = mFBDevice->width; mHeight = mFBDevice->height; xdpi = mFBDevice->xdpi; + /* The emulator actually reports RGBA_8888, but EGL doesn't return + * any matching configuration. We force RGBX here to fix it. */ surfaceformat = HAL_PIXEL_FORMAT_RGBX_8888; }