d3d1x: initialize the mutex
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 23 Sep 2010 09:58:09 +0000 (11:58 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Thu, 23 Sep 2010 14:06:02 +0000 (16:06 +0200)
src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h

index 7627720148d7735fe34a6fc05a51181b119d9fdc..974518a5ce3ad1ce927b28f1cefc819d3420756e 100644 (file)
@@ -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);