From 9ecf7918e3567cfbbb90885df32c8316a1c9d00c Mon Sep 17 00:00:00 2001
From: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Thu, 1 Dec 2016 18:42:33 +0100
Subject: [PATCH] let each game ship its own shaders

---
 src/video/shaders.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/video/shaders.cpp b/src/video/shaders.cpp
index 34132f867..f42ba2a02 100644
--- a/src/video/shaders.cpp
+++ b/src/video/shaders.cpp
@@ -1,6 +1,7 @@
 #include "stratagus.h"
 #include "parameters.h"
 #include "video.h"
+#include "game.h"
 #include "iolib.h"
 #include <iostream>
 #include <fstream>
@@ -101,9 +102,9 @@ extern bool LoadShaders(int direction, char* shadernameOut) {
 	std::vector<FileList> flp;
 	std::string shaderPath(Parameters::Instance.GetUserDirectory());
 #ifdef _WIN32
-	shaderPath.append("\\shaders\\");
+	shaderPath.append("\\shaders\\" + GameName + "\\");
 #else
-	shaderPath.append("/shaders/");
+	shaderPath.append("/shaders/" + GameName + "/");
 #endif
 	int n = ReadDataDirectory(shaderPath.c_str(), flp);
 	int numShaderFiles = 0;