Skip to content

Commit

Permalink
Bug 944679 - Do not return nullptr in DeprecatedTextureHostBasic::Get…
Browse files Browse the repository at this point in the history
…AsSurface. r=nical
  • Loading branch information
Pehrsons committed Nov 29, 2013
1 parent 6b929fc commit e51a2e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gfx/layers/basic/BasicCompositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ class DeprecatedTextureHostBasic : public DeprecatedTextureHost
}

virtual TemporaryRef<gfx::DataSourceSurface> GetAsSurface() MOZ_OVERRIDE {
return nullptr;
if (!mSurface) {
return nullptr;
}
return mSurface->GetDataSurface();
}

BasicCompositor *mCompositor;
Expand Down

0 comments on commit e51a2e7

Please sign in to comment.