mesa: ignore VAO IDs equal to 0 in glDeleteVertexArrays
This fixes a firefox crash.
Fixes: 781a78914c
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
b147254d36
commit
355ed029b0
|
@ -1014,6 +1014,10 @@ delete_vertex_arrays(struct gl_context *ctx, GLsizei n, const GLuint *ids)
|
|||
GLsizei i;
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
/* IDs equal to 0 should be silently ignored. */
|
||||
if (!ids[i])
|
||||
continue;
|
||||
|
||||
struct gl_vertex_array_object *obj = _mesa_lookup_vao(ctx, ids[i]);
|
||||
|
||||
if (obj) {
|
||||
|
|
Loading…
Reference in New Issue