Commit a1ef3fe3 authored by Ms2ger's avatar Ms2ger
Browse files

Bug 732704 - compressedTexSubImage2D should take 8 arguments, not 7; r=bjacob

parent 07234ed6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -294,7 +294,7 @@ nsIDOMWebGLRenderingContext_CompressedTexSubImage2D(JSContext *cx, unsigned argc
    if (!xpc_qsUnwrapThis(cx, obj, &self, &selfref.ptr, tvr.jsval_addr(), nsnull))
        return JS_FALSE;

    if (argc != 7)
    if (argc < 8)
        return xpc_qsThrow(cx, NS_ERROR_XPC_NOT_ENOUGH_ARGS);

    jsval *argv = JS_ARGV(cx, vp);