Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:tmpvar/WebGL-standalone

  • Loading branch information...
commit d8c6c65a4f7ac6c6a74aca521484775264ad41da 2 parents f6d78db + a3a4432
@tmpvar authored
Showing with 5 additions and 2 deletions.
  1. +3 −0  example/triangle.js
  2. +2 −2 src/js/spidermonkey.cc
View
3  example/triangle.js
@@ -109,3 +109,6 @@ while(a--) {
e('draw arrays', gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4));
e('flush', gl.flush());
}
+
+
+console.log(gl.notImplemented + '/' + gl.totalMethods + " (" + Math.floor(((gl.totalMethods - gl.notImplemented)/gl.totalMethods)*100) + "%)");
View
4 src/js/spidermonkey.cc
@@ -410,8 +410,8 @@ JSBool webgl_rendering_context_enableVertexAttribArray(JSContext *cx, uintN argc
}
JSBool webgl_rendering_context_finish(JSContext *cx, uintN argc, jsval *argv) {
- JS_ReportError(cx, "method not implemented");
- return JS_FALSE;
+ glFinish();
+ return JS_TRUE;
}
JSBool webgl_rendering_context_flush(JSContext *cx, uintN argc, jsval *argv) {
Please sign in to comment.
Something went wrong with that request. Please try again.