Bug 1136416 - Hack to pass the context-lost test for now. - r=ethlin draft
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 18 Jul 2016 18:31:56 -0700
changeset 389311 00d9665b4bd4adb159367ad948fa706585d8e0bf
parent 388915 37a5b78f9a9de71c3272185a770e1c2c4b0d9981
child 525722 7b9cb78399bd53759a41fa46fca231f36ca34a2d
push id23370
push userbmo:jgilbert@mozilla.com
push dateTue, 19 Jul 2016 01:32:18 +0000
reviewersethlin
bugs1136416
milestone50.0a1
Bug 1136416 - Hack to pass the context-lost test for now. - r=ethlin MozReview-Commit-ID: 2sue4UcB1Y4
dom/canvas/WebGLExtensionVertexArray.cpp
--- a/dom/canvas/WebGLExtensionVertexArray.cpp
+++ b/dom/canvas/WebGLExtensionVertexArray.cpp
@@ -20,56 +20,44 @@ WebGLExtensionVertexArray::WebGLExtensio
 
 WebGLExtensionVertexArray::~WebGLExtensionVertexArray()
 {
 }
 
 already_AddRefed<WebGLVertexArray>
 WebGLExtensionVertexArray::CreateVertexArrayOES()
 {
-    if (mIsLost) {
-        mContext->ErrorInvalidOperation("%s: Extension is lost.",
-                                        "createVertexArrayOES");
+    if (mIsLost)
         return nullptr;
-    }
 
     return mContext->CreateVertexArray();
 }
 
 void
 WebGLExtensionVertexArray::DeleteVertexArrayOES(WebGLVertexArray* array)
 {
-    if (mIsLost) {
-        mContext->ErrorInvalidOperation("%s: Extension is lost.",
-                                        "deleteVertexArrayOES");
+    if (mIsLost)
         return;
-    }
 
     mContext->DeleteVertexArray(array);
 }
 
 bool
 WebGLExtensionVertexArray::IsVertexArrayOES(WebGLVertexArray* array)
 {
-    if (mIsLost) {
-        mContext->ErrorInvalidOperation("%s: Extension is lost.",
-                                        "isVertexArrayOES");
+    if (mIsLost)
         return false;
-    }
 
     return mContext->IsVertexArray(array);
 }
 
 void
 WebGLExtensionVertexArray::BindVertexArrayOES(WebGLVertexArray* array)
 {
-    if (mIsLost) {
-        mContext->ErrorInvalidOperation("%s: Extension is lost.",
-                                        "bindVertexArrayOES");
+    if (mIsLost)
         return;
-    }
 
     mContext->BindVertexArray(array);
 }
 
 IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionVertexArray, OES_vertex_array_object)
 
 } // namespace mozilla