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
Родитель 46812c04e4
Коммит 4696a89fb8
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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