Modified shaders' source path.

This commit is contained in:
Maciej Suminski 2013-04-23 09:52:51 +02:00
parent f24048e8da
commit ced0d8add9
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,8 @@
#include <wx/window.h>
#include <wx/event.h>
#include <wx/colour.h>
#include <wx/filefn.h>
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include <class_drawpanel_gal.h>
#include <view/view.h>
@ -50,7 +51,9 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
m_view = NULL;
m_painter = NULL;
m_galShaderPath = std::string( ::wxGetCwd().mb_str() ) + "/../../gal/opengl/shader/";
wxStandardPaths paths;
wxFileName executableFile( paths.GetExecutablePath() );
m_galShaderPath = std::string( executableFile.GetPath() + "/../../common/gal/opengl/shader/" );
SwitchBackend( aGalType, false );
SetBackgroundStyle( wxBG_STYLE_CUSTOM );

View File

@ -65,7 +65,7 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
isUseShader = isUseShaders;
isShaderInitialized = false;
isGroupStarted = false;
shaderPath = "../../../gal/opengl/shader/";
shaderPath = "../../common/gal/opengl/shader/";
wxSize parentSize = aParent->GetSize();
SetSize( parentSize );