mesa: Add _mesa_lookup_vao_err
authorFredrik Höglund <fredrik@kde.org>
Mon, 2 Mar 2015 17:24:36 +0000 (18:24 +0100)
committerFredrik Höglund <fredrik@kde.org>
Fri, 8 May 2015 13:31:02 +0000 (15:31 +0200)
commit2830c2fbeb9601c1760a9fffe45cd04f8c635d25
tree2bd944d34a0ff96a07a961b4f9e6791131ed1bc2
parenta1f48268b4ee166eb9fde21bceaaef12a6e0c89a
mesa: Add _mesa_lookup_vao_err

This is a convenience function that generates GL_INVALID_OPERATION
when the array object doesn't exist.

Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h