diff --git a/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.cpp b/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.cpp
index dc0bb858b..bc83b5d78 100644
--- a/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.cpp
+++ b/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.cpp
@@ -14,7 +14,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-
#include "nel3d_widget.h"
#include "nel/3d/u_driver.h"
#include "nel/3d/text_context.h"
@@ -29,7 +28,7 @@
#include
Nel3DWidget::Nel3DWidget( QWidget *parent ) :
-QWidget( parent )
+NEL3DWIDGET( parent )
{
driver = NULL;
textContext = NULL;
diff --git a/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.h b/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.h
index 059e1b738..afed4cf65 100644
--- a/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.h
+++ b/code/studio/src/plugins/core/Nel3DWidget/nel3d_widget.h
@@ -18,10 +18,22 @@
#ifndef NEL3D_WIDGET_H
#define NEL3D_WIDGET_H
-#include
#include "nel/misc/types_nl.h"
#include
+#ifdef NEL3DWIDGET
+#undef NEL3DWIDGET
+#endif
+
+#ifdef NL_OS_WINDOWS
+#include
+#define NEL3DWIDGET QWidget
+#else
+#include
+#define NEL3DWIDGET QGLWidget
+#endif
+
+
#include "../core_global.h"
namespace NL3D
@@ -31,7 +43,7 @@ namespace NL3D
}
/// Nel 3D interface to Qt
-class CORE_EXPORT Nel3DWidget : public QWidget
+class CORE_EXPORT Nel3DWidget : public QGLWidget
{
Q_OBJECT
public: