diff options
author | 2009-08-02 21:30:15 +0000 | |
---|---|---|
committer | 2009-08-02 21:30:15 +0000 | |
commit | c82a206b271413bd56c2d809e8d60089c107e806 (patch) | |
tree | eb76b6741793173f382fdd0df8f5e2a73d8af4fc /sci-chemistry/avogadro/files | |
parent | x11-base/xorg-server: drop old ebuilds (diff) | |
download | gentoo-2-c82a206b271413bd56c2d809e8d60089c107e806.tar.gz gentoo-2-c82a206b271413bd56c2d809e8d60089c107e806.tar.bz2 gentoo-2-c82a206b271413bd56c2d809e8d60089c107e806.zip |
Small patch to remove the unnecessary config.h include in the shader plugin, bug 277251.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/avogadro/files')
-rw-r--r-- | sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch b/sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch new file mode 100644 index 000000000000..f8a3fab40316 --- /dev/null +++ b/sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch @@ -0,0 +1,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 + |