projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b147254
)
mesa: ignore VAO IDs equal to 0 in glDeleteVertexArrays
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Aug 2018 19:14:46 +0000
(15:14 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 31 Aug 2018 02:30:28 +0000
(22:30 -0400)
This fixes a firefox crash.
Fixes: 781a78914c798dc64005b37c6ca1224ce06803fc
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/arrayobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/arrayobj.c
b/src/mesa/main/arrayobj.c
index a23031fe182637450c56dad273120f7caaaad079..6e0665c0e5d89a9dca3d0cf2dfa30dd20d8c40d3 100644
(file)
--- a/
src/mesa/main/arrayobj.c
+++ b/
src/mesa/main/arrayobj.c
@@
-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) {