Commit ced0d8ad authored by Maciej Suminski's avatar Maciej Suminski

Modified shaders' source path.

parent f24048e8
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
#include <wx/window.h> #include <wx/window.h>
#include <wx/event.h> #include <wx/event.h>
#include <wx/colour.h> #include <wx/colour.h>
#include <wx/filefn.h> #include <wx/stdpaths.h>
#include <wx/filename.h>
#include <class_drawpanel_gal.h> #include <class_drawpanel_gal.h>
#include <view/view.h> #include <view/view.h>
...@@ -50,7 +51,9 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin ...@@ -50,7 +51,9 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
m_view = NULL; m_view = NULL;
m_painter = 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 ); SwitchBackend( aGalType, false );
SetBackgroundStyle( wxBG_STYLE_CUSTOM ); SetBackgroundStyle( wxBG_STYLE_CUSTOM );
......
...@@ -65,7 +65,7 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener, ...@@ -65,7 +65,7 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
isUseShader = isUseShaders; isUseShader = isUseShaders;
isShaderInitialized = false; isShaderInitialized = false;
isGroupStarted = false; isGroupStarted = false;
shaderPath = "../../../gal/opengl/shader/"; shaderPath = "../../common/gal/opengl/shader/";
wxSize parentSize = aParent->GetSize(); wxSize parentSize = aParent->GetSize();
SetSize( parentSize ); SetSize( parentSize );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment