Mesa (master): d3d1x: initialize the mutex

Luca Barbieri lb at kemper.freedesktop.org
Thu Sep 23 16:07:36 UTC 2010


Module: Mesa
Branch: master
Commit: 22762012d1ab4060d8274c1007067c80bb8e806c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22762012d1ab4060d8274c1007067c80bb8e806c

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Thu Sep 23 11:58:09 2010 +0200

d3d1x: initialize the mutex

---

 .../d3d1x/d3d1xstutil/include/d3d1xstutil.h        |    5 +++++
 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 7627720..974518a 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);




More information about the mesa-commit mailing list