diff --git a/gfx/layers/basic/TextureClientX11.cpp b/gfx/layers/basic/TextureClientX11.cpp index 86ea930dcc22..d21f2ef4fd8f 100644 --- a/gfx/layers/basic/TextureClientX11.cpp +++ b/gfx/layers/basic/TextureClientX11.cpp @@ -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