Fix source destination of shaders for portable builds.
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -8,9 +8,10 @@
|
|||||||
// TODO: Parse command-line args.
|
// TODO: Parse command-line args.
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
mcolor::windowsSaneify();
|
||||||
ReWindow::Logger::Debug.EnableConsole(false);
|
ReWindow::Logger::Debug.EnableConsole(false);
|
||||||
|
|
||||||
int default_app_width = 1660;
|
int default_app_width = 1440;
|
||||||
int default_app_height = 900;
|
int default_app_height = 900;
|
||||||
|
|
||||||
// TODO: Create AppConfig struct and pass to constructor.
|
// TODO: Create AppConfig struct and pass to constructor.
|
||||||
|
@@ -20,11 +20,11 @@ FractalInspectorApp::FractalInspectorApp(int width, int height):
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::filesystem::path FractalInspectorApp::VertexShaderFilepathFromPrefixName(const std::string &name) {
|
std::filesystem::path FractalInspectorApp::VertexShaderFilepathFromPrefixName(const std::string &name) {
|
||||||
return "../shaders/" + name + ".vert.glsl";
|
return "shaders/" + name + ".vert.glsl";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::filesystem::path FractalInspectorApp::FragmentShaderFilepathFromPrefixName(const std::string &name) {
|
std::filesystem::path FractalInspectorApp::FragmentShaderFilepathFromPrefixName(const std::string &name) {
|
||||||
return "../shaders/" + name + ".frag.glsl";
|
return "shaders/" + name + ".frag.glsl";
|
||||||
}
|
}
|
||||||
|
|
||||||
void FractalInspectorApp::LoadShaders() {
|
void FractalInspectorApp::LoadShaders() {
|
||||||
|
Reference in New Issue
Block a user