=== modified file 'src/core/StelPainter.cpp'
--- src/core/StelPainter.cpp	2012-04-11 08:50:25 +0000
+++ src/core/StelPainter.cpp	2012-04-18 09:10:54 +0000
@@ -61,9 +61,9 @@
 #define GL_MULTISAMPLE  0x809D
 #endif
 
-#ifndef NDEBUG
+//#ifndef NDEBUG
 QMutex* StelPainter::globalMutex = new QMutex();
-#endif
+//#endif
 
 QPainter* StelPainter::qPainter = NULL;
 QGLContext* StelPainter::glContext = NULL;
@@ -130,13 +130,14 @@
 		if (er==GL_INVALID_OPERATION)
 			qFatal("Invalid openGL operation. It is likely that you used openGL calls without having a valid instance of StelPainter");
 	}
-
+#endif
+	
 	// Lock the global mutex ensuring that no other instances of StelPainter are currently being used
 	if (globalMutex->tryLock()==false)
 	{
 		qFatal("There can be only 1 instance of StelPainter at a given time");
 	}
-#endif
+//#endif
 
 	Q_ASSERT(qPainter);
 	qPainter->beginNativePainting();
@@ -207,10 +208,10 @@
 #endif
 	qPainter->endNativePainting();
 
-#ifndef NDEBUG
+//#ifndef NDEBUG
 	// We are done with this StelPainter
 	globalMutex->unlock();
-#endif
+//#endif
 }
 
 

=== modified file 'src/core/StelPainter.hpp'
--- src/core/StelPainter.hpp	2012-04-11 08:50:25 +0000
+++ src/core/StelPainter.hpp	2012-04-18 09:11:14 +0000
@@ -394,10 +394,10 @@
 	//! The associated instance of projector
 	StelProjectorP prj;
 
-#ifndef NDEBUG
+//#ifndef NDEBUG
 	//! Mutex allowing thread safety
 	static class QMutex* globalMutex;
-#endif
+//#endif
 
 	//! The QPainter to use for some drawing operations.
 	static QPainter* qPainter;

