b=606218; [webgl] content appears upside down when rendered via shadow layers; r=cjones, a=b

This commit is contained in:
Vladimir Vukicevic 2011-01-19 00:55:31 -08:00
parent 69dc2ae3e3
commit deb3b45692

View File

@ -2011,7 +2011,10 @@ BasicShadowableCanvasLayer::Paint(gfxContext* aContext,
// the shmem back buffer
nsRefPtr<gfxContext> tmpCtx = new gfxContext(mBackBuffer);
tmpCtx->SetOperator(gfxContext::OPERATOR_SOURCE);
tmpCtx->DrawSurface(mSurface, gfxSize(mBounds.width, mBounds.height));
// call BasicCanvasLayer::Paint to draw to our tmp context, because
// it'll handle things like flipping correctly
BasicCanvasLayer::Paint(tmpCtx, nsnull, nsnull);
BasicManager()->PaintedCanvas(BasicManager()->Hold(this),
mBackBuffer);