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

This commit is contained in:
Ms2ger 2012-03-16 10:49:29 +01:00
parent b2bb2520d9
commit ea07526c91

View File

@ -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);