mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1360613 - Don't call BorrowDrawTarget on a null texture. r=ethlin
MozReview-Commit-ID: EtBMTwA5mcB --HG-- extra : rebase_source : 87de2f03dba406974fc8c9037e1ddf7af0e25e49
This commit is contained in:
parent
4cc4fce760
commit
aaee175243
@ -49,7 +49,10 @@ public:
|
||||
|
||||
already_AddRefed<gfx::DrawTarget> GetDrawTarget()
|
||||
{
|
||||
RefPtr<gfx::DrawTarget> target = mTexture->BorrowDrawTarget();
|
||||
RefPtr<gfx::DrawTarget> target;
|
||||
if (mTexture) {
|
||||
target = mTexture->BorrowDrawTarget();
|
||||
}
|
||||
return target.forget();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user