Bug 1288643 - Since we detach now, just check if the object is detached to determine if lost. - r=jerry
MozReview-Commit-ID: CVnjpGroR0w
--- a/dom/canvas/WebGLContext.h
+++ b/dom/canvas/WebGLContext.h
@@ -1594,17 +1594,17 @@ ToSupports(WebGLContext* webgl)
** Template implementations
**/
template<class ObjectType>
inline bool
WebGLContext::ValidateObjectAllowDeletedOrNull(const char* info,
ObjectType* object)
{
- if (object && !object->IsCompatibleWithContext(this)) {
+ if (object && !object->Context()) {
ErrorInvalidOperation("%s: object from different WebGL context "
"(or older generation of this one) "
"passed as argument", info);
return false;
}
return true;
}