atlas = calloc(1, sizeof(*atlas));
if (atlas) {
_mesa_HashInsert(ctx->Shared->BitmapAtlas, listBase, atlas, isGenName);
+ atlas->Id = listBase;
}
return atlas;
* deleted belongs to a bitmap texture atlas.
*/
static void
-check_atlas_for_deleted_list(GLuint atlas_id, void *data, void *userData)
+check_atlas_for_deleted_list(UNUSED GLuint key, void *data, void *userData)
{
struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data;
GLuint list_id = *((GLuint *) userData); /* the list being deleted */
+ const GLuint atlas_id = atlas->Id;
/* See if the list_id falls in the range contained in this texture atlas */
if (atlas->complete &&