The query of NUM_COMPRESSED_TEXTURE_FORMATS must be handled by the WebGL implementation rather than delegating to the underlying OpenGL API, because WebGL 1.0 does not support compressed textures and must return 0 for this query.
Created attachment 61715 [details] Patch
Comment on attachment 61715 [details] Patch Per offline conversation, please add a comment explaining why we're hard-coding a 0 before submitting. > case GraphicsContext3D::NUM_COMPRESSED_TEXTURE_FORMATS: > - return getLongParameter(pname); > + return WebGLGetInfo(static_cast<long>(0));
Committed r63460: <http://trac.webkit.org/changeset/63460>