summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-09-23 11:58:09 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-23 16:06:02 +0200
commit22762012d1ab4060d8274c1007067c80bb8e806c (patch)
tree763794e8fe7374efc3137117b21814f0eb3dfd4c /src/gallium/state_trackers
parent440129521c36bc2c2e59c462a94394b2f42a847e (diff)
d3d1x: initialize the mutex
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
index 7627720148..974518a5ce 100644
--- a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
+++ b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
@@ -675,6 +675,11 @@ struct maybe_mutex_t<true>
{
pipe_mutex mutex;
+ maybe_mutex_t()
+ {
+ pipe_mutex_init(mutex);
+ }
+
void lock()
{
pipe_mutex_lock(mutex);