Gentoo Archives: gentoo-commits

From: "Marcus Hanwell (cryos)" <cryos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/avogadro/files: avogadro-0.9.7-shader-include.patch
Date: Sun, 02 Aug 2009 21:30:17
Message-Id: E1MXidD-0008To-Cw@stork.gentoo.org
1 cryos 09/08/02 21:30:15
2
3 Added: avogadro-0.9.7-shader-include.patch
4 Log:
5 Small patch to remove the unnecessary config.h include in the shader plugin, bug 277251.
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/avogadro/files/avogadro-0.9.7-shader-include.patch?rev=1.1&content-type=text/plain
13
14 Index: avogadro-0.9.7-shader-include.patch
15 ===================================================================
16 diff --git a/libavogadro/src/extensions/shaderextension.cpp b/libavogadro/src/extensions/shaderextension.cpp
17 index 117b0e7..1295cc1 100644
18 --- a/libavogadro/src/extensions/shaderextension.cpp
19 +++ b/libavogadro/src/extensions/shaderextension.cpp
20 @@ -28,8 +28,6 @@
21 #include <GL/glew.h>
22 #endif
23
24 -#include "../config.h"
25 -
26 #include <avogadro/glwidget.h>
27 #include <avogadro/toolgroup.h>
28 #include <avogadro/engine.h>
29 @@ -384,8 +382,8 @@ namespace Avogadro
30 verts = QCoreApplication::applicationDirPath();
31 verts.cd("shaders");
32 #else
33 - QString systemShadersPath = QString(INSTALL_PREFIX) + '/'
34 - + "share/libavogadro/shaders";
35 + QString systemShadersPath = QCoreApplication::applicationDirPath() +
36 + "/../share/libavogadro/shaders";
37 verts.cd(systemShadersPath);
38 #endif