summaryrefslogtreecommitdiff
blob: f8a3fab403161c5b2596857d7688512880053617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/libavogadro/src/extensions/shaderextension.cpp b/libavogadro/src/extensions/shaderextension.cpp
index 117b0e7..1295cc1 100644
--- a/libavogadro/src/extensions/shaderextension.cpp
+++ b/libavogadro/src/extensions/shaderextension.cpp
@@ -28,8 +28,6 @@
   #include <GL/glew.h>
 #endif
 
-#include "../config.h"
-
 #include <avogadro/glwidget.h>
 #include <avogadro/toolgroup.h>
 #include <avogadro/engine.h>
@@ -384,8 +382,8 @@ namespace Avogadro
     verts = QCoreApplication::applicationDirPath();
     verts.cd("shaders");
     #else
-    QString systemShadersPath = QString(INSTALL_PREFIX) + '/'
-      + "share/libavogadro/shaders";
+    QString systemShadersPath = QCoreApplication::applicationDirPath() +
+                                "/../share/libavogadro/shaders";
     verts.cd(systemShadersPath);
     #endif