b=525984; [webgl] reset mThebesSurface on OSX in case of error to avoid crash; r=jrmuizel

This commit is contained in:
Vladimir Vukicevic 2010-03-03 16:40:27 -08:00
parent 02fe8f1b07
commit fa7984e74f

View File

@ -229,6 +229,7 @@ nsGLPbufferCGL::ThebesSurface()
mThebesSurface = new gfxImageSurface(gfxIntSize(mWidth, mHeight), gfxASurface::ImageFormatARGB32);
if (mThebesSurface->CairoStatus() != 0) {
fprintf (stderr, "image surface failed\n");
mThebesSurface = nsnull;
return nsnull;
}