Bug 787017. Die more verbosely on Android during Layers init. r=bjacob

This might give us some more information on what's happening.

--HG--
extra : rebase_source : f2865e0d59746170d8b258334673acbd301dca54
This commit is contained in:
Jeff Muizelaar 2013-02-11 15:56:26 -05:00
parent efbe03275c
commit 6b916e79b2

View File

@ -521,6 +521,9 @@ LayerManagerOGL::Initialize(nsRefPtr<GLContext> aContext, bool force)
// initialise a common shader to check that we can actually compile a shader
if (!mPrograms[gl::RGBALayerProgramType].mVariations[MaskNone]->Initialize()) {
#ifdef MOZ_WIDGET_ANDROID
NS_RUNTIMEABORT("Shader initialization failed");
#endif
return false;
}
@ -591,6 +594,9 @@ LayerManagerOGL::Initialize(nsRefPtr<GLContext> aContext, bool force)
if (mFBOTextureTarget == LOCAL_GL_NONE) {
/* Unable to find a texture target that works with FBOs and NPOT textures */
#ifdef MOZ_WIDGET_ANDROID
NS_RUNTIMEABORT("No texture target");
#endif
return false;
}
} else {
@ -608,6 +614,9 @@ LayerManagerOGL::Initialize(nsRefPtr<GLContext> aContext, bool force)
* texture2DRect).
*/
if (!mGLContext->IsExtensionSupported(gl::GLContext::ARB_texture_rectangle))
#ifdef MOZ_WIDGET_ANDROID
NS_RUNTIMEABORT("No texture rectangle");
#endif
return false;
}