Bug 974841 - Fix TextureClientX11::Lock. r=jrmuizel

This commit is contained in:
Nicolas Silva 2014-02-24 11:42:54 +01:00
parent c40bfc6b23
commit e6f2d98eed

View File

@ -41,8 +41,8 @@ TextureClientX11::Lock(OpenMode aMode)
{
// XXX - Turn this into a fatal assertion as soon as Bug 952507 is fixed
NS_WARN_IF_FALSE(!mLocked, "The TextureClient is already Locked!");
mLocked = true;
return IsValid() && IsAllocated();
mLocked = IsValid() && IsAllocated();
return mLocked;
}
void