From f919077d47a21b40b2d814f7ff89efc35c453ce8 Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Mon, 19 Dec 2016 18:03:18 -0800 Subject: [PATCH] Bug 1324614 - Make MAX_ELEMENT_INDEX default to UINT32_MAX when ES3_compat unavailable. - r=daoshengmu MozReview-Commit-ID: 5y3cXDaLYXe --- dom/canvas/WebGL2ContextState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/canvas/WebGL2ContextState.cpp b/dom/canvas/WebGL2ContextState.cpp index cbae23648161..f4e372bcc927 100644 --- a/dom/canvas/WebGL2ContextState.cpp +++ b/dom/canvas/WebGL2ContextState.cpp @@ -118,7 +118,7 @@ WebGL2Context::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv) // GL_MAX_ELEMENT_INDEX becomes available in GL 4.3 or via ES3 // compatibility if (!gl->IsSupported(gl::GLFeature::ES3_compatibility)) - return JS::NumberValue(0); + return JS::NumberValue(UINT32_MAX); /*** fall through to fGetInteger64v ***/ MOZ_FALLTHROUGH;