mesa: simplify _mesa_IsVertexArray()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Jun 2017 13:13:15 +0000 (15:13 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Jun 2017 17:15:17 +0000 (19:15 +0200)
commit4f00b2bc7e4515257ff9c674259da1264ab2c9a3
treee860ce4386003bac805d03981f9133068943e1fe
parentcb3e01ca7110069f5ffe9ef42df6511f650ec644
mesa: simplify _mesa_IsVertexArray()

_mesa_lookup_vao() already returns NULL if id is zero.

v2: - change the conditional (Ian)

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> (v1)
src/mesa/main/arrayobj.c