Bug 1237194 - Fix getSyncParameter return error. r=jgilbert
authorEthan Lin <ethlin@mozilla.com>
Wed, 06 Jan 2016 01:29:00 +0100
changeset 320220 1b36e59457e7688791b5fb7438e3c28a90f3b71d
parent 320219 e0603b355f0c98b14c7dc8ca4784c26aca550937
child 320221 117b84fe44cefbc230cc01e34fa02d7b1e089477
push id9164
push useratolfsen@mozilla.com
push dateSat, 09 Jan 2016 21:37:35 +0000
reviewersjgilbert
bugs1237194
milestone46.0a1
Bug 1237194 - Fix getSyncParameter return error. r=jgilbert
dom/canvas/WebGL2ContextSync.cpp
--- a/dom/canvas/WebGL2ContextSync.cpp
+++ b/dom/canvas/WebGL2ContextSync.cpp
@@ -120,15 +120,15 @@ WebGL2Context::GetSyncParameter(JSContex
     switch (pname) {
     case LOCAL_GL_OBJECT_TYPE:
     case LOCAL_GL_SYNC_STATUS:
     case LOCAL_GL_SYNC_CONDITION:
     case LOCAL_GL_SYNC_FLAGS:
         MakeContextCurrent();
         gl->fGetSynciv(sync->mGLName, pname, 1, nullptr, &result);
         retval.set(JS::Int32Value(result));
-        break;
+        return;
     }
 
     ErrorInvalidEnum("getSyncParameter: Invalid pname 0x%04x", pname);
 }
 
 } // namespace mozilla