Fix draw call by passing the value of the primitive type to drawElements/drawArrays.