Bug 882890 - Add fake vertex attribute 0 disabling to the getVertexAttrib function to improve WebGL compatibility with driver limitations. r=bjacob

This commit is contained in:
Guillaume Abadie 2013-06-23 20:40:12 -04:00
parent 9c3393692c
commit 47c2d77d27

View File

@ -2996,6 +2996,10 @@ WebGLContext::GetVertexAttrib(JSContext* cx, WebGLuint index, WebGLenum pname,
}
case LOCAL_GL_VERTEX_ATTRIB_ARRAY_ENABLED:
{
return JS::BooleanValue(mAttribBuffers[index].enabled);
}
case LOCAL_GL_VERTEX_ATTRIB_ARRAY_NORMALIZED:
{
GLint i = 0;