mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
remove the unused texobj Mutex field
This commit is contained in:
parent
5c5ab90c76
commit
c62da91f44
2 changed files with 0 additions and 6 deletions
|
|
@ -1397,7 +1397,6 @@ struct gl_texture_image
|
|||
*/
|
||||
struct gl_texture_object
|
||||
{
|
||||
_glthread_Mutex Mutex; /**< for thread safety */
|
||||
GLint RefCount; /**< reference count */
|
||||
GLuint Name; /**< the user-visible texture object ID */
|
||||
GLenum Target; /**< GL_TEXTURE_1D, GL_TEXTURE_2D, etc. */
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj,
|
|||
|
||||
_mesa_bzero(obj, sizeof(*obj));
|
||||
/* init the non-zero fields */
|
||||
_glthread_INIT_MUTEX(obj->Mutex);
|
||||
obj->RefCount = 1;
|
||||
obj->Name = name;
|
||||
obj->Target = target;
|
||||
|
|
@ -136,7 +135,6 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj,
|
|||
obj->CompareFunc = GL_LEQUAL; /* ARB_shadow */
|
||||
obj->DepthMode = GL_LUMINANCE; /* ARB_depth_texture */
|
||||
obj->ShadowAmbient = 0.0F; /* ARB/SGIX_shadow_ambient */
|
||||
_mesa_init_colortable(&obj->Palette);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -165,9 +163,6 @@ _mesa_delete_texture_object( GLcontext *ctx, struct gl_texture_object *texObj )
|
|||
}
|
||||
}
|
||||
|
||||
/* destroy the mutex -- it may have allocated memory (eg on bsd) */
|
||||
_glthread_DESTROY_MUTEX(texObj->Mutex);
|
||||
|
||||
/* free this object */
|
||||
_mesa_free(texObj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue