summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-02-08 19:43:42 +0100
committerMichal Krol <michal@vmware.com>2010-02-09 14:46:32 +0100
commiteeec2c3d951fed0d22e5dbf436d4a2d887e24221 (patch)
tree064a2ff0339c2ef48b153a2ad79f0fc470217650 /src/mesa/main/mtypes.h
parent829d9bb7334ffea0d5d0c4076dd75c41525fae0c (diff)
mesa: Protect buffer objects reference counting with a mutex.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r--src/mesa/main/mtypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 2640ba5ac4..20035417b9 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1426,6 +1426,7 @@ struct gl_viewport_attrib
*/
struct gl_buffer_object
{
+ _glthread_Mutex Mutex;
GLint RefCount;
GLuint Name;
GLenum Usage; /**< GL_STREAM_DRAW_ARB, GL_STREAM_READ_ARB, etc. */