Malia. UI Shaders. The path to the display shaders should not be hard-coded during compilation
The path to the display shaders should not be hard-coded during compilation :
For example here in mrf_baseUI
void BaseUI::initializeUIRenderingResources(int w, int h, bool v_sync)
{
createContext(w, h, v_sync);
//TODO better handle this to allow custom display shader ?
std::string pathToShaders = std::string(getenv("MRF_DIR")) + "/apps/malia/gui/gl_src/shaders/";
I would recommend to code something like that :
#MRF_DEV_COMPILATION
std::string pathToShaders = std::string(getenv("MRF_DIR")) + "/apps/malia/gui/gl_src/shaders/";
#else // MEANING THIS IS TO RELEASE THE APPLICATION
std::string pathToShaders = getExecutioPath() + "/shaders/";
#