init mutex
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
/* $Id: context.c,v 1.84 2000/09/08 21:28:04 brianp Exp $ */
|
/* $Id: context.c,v 1.85 2000/09/12 21:07:40 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 3.3
|
* Version: 3.5
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
@@ -457,8 +457,9 @@ alloc_shared_state( void )
|
|||||||
if (!ss)
|
if (!ss)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ss->DisplayList = _mesa_NewHashTable();
|
_glthread_INIT_MUTEX(ss->Mutex);
|
||||||
|
|
||||||
|
ss->DisplayList = _mesa_NewHashTable();
|
||||||
ss->TexObjects = _mesa_NewHashTable();
|
ss->TexObjects = _mesa_NewHashTable();
|
||||||
|
|
||||||
/* Default Texture objects */
|
/* Default Texture objects */
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: texobj.c,v 1.26 2000/08/03 14:03:17 brianp Exp $ */
|
/* $Id: texobj.c,v 1.27 2000/09/12 21:07:41 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
@@ -63,6 +63,7 @@ gl_alloc_texture_object( struct gl_shared_state *shared, GLuint name,
|
|||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
/* init the non-zero fields */
|
/* init the non-zero fields */
|
||||||
|
_glthread_INIT_MUTEX(obj->Mutex);
|
||||||
obj->RefCount = 1;
|
obj->RefCount = 1;
|
||||||
obj->Name = name;
|
obj->Name = name;
|
||||||
obj->Dimensions = dimensions;
|
obj->Dimensions = dimensions;
|
||||||
|
Reference in New Issue
Block a user