From f18fc687071a71a6f821a779a83b435f80d55b64 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 14 Sep 2004 20:40:55 +0000 Subject: Repeatedly deleting a texture ID with glDeleteTextures() could lead to a crash. Added a DeletePending flag to texture object struct to fix that. Other misc clean-ups. --- src/mesa/main/mtypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index ba32faad70..3e5c04415d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1147,6 +1147,7 @@ struct gl_texture_image { struct gl_texture_object { _glthread_Mutex Mutex; /**< for thread safety */ GLint RefCount; /**< reference count */ + GLboolean DeletePending; /**< Has glDeleteTexture been called? */ GLuint Name; /**< an unsigned integer */ GLenum Target; /**< GL_TEXTURE_1D, GL_TEXTURE_2D, etc. */ GLfloat Priority; /**< in [0,1] */ -- cgit v1.2.3