summaryrefslogtreecommitdiffstats
path: root/games/mars/pull2.patch
diff options
context:
space:
mode:
author David Spencer <idlemoor@slackbuilds.org>2016-01-20 00:30:10 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-20 23:59:30 +0700
commitd328c13a7f3b9365029dc7e2cfee118299d1556a (patch)
tree2eec8865b523cf943859c4b95e8f368fbb14ab4a /games/mars/pull2.patch
parent79593e496b2c689160b3b9c2c789bb7f56b42793 (diff)
downloadslackbuilds-d328c13a7f3b9365029dc7e2cfee118299d1556a.tar.gz
slackbuilds-d328c13a7f3b9365029dc7e2cfee118299d1556a.tar.xz
games/mars: Patched to build with SFML-2.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/mars/pull2.patch')
-rw-r--r--games/mars/pull2.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/mars/pull2.patch b/games/mars/pull2.patch
new file mode 100644
index 0000000000..6d0eb147b0
--- /dev/null
+++ b/games/mars/pull2.patch
@@ -0,0 +1,26 @@
+--- mars-game/src/CMakeLists.original.txt 2014-05-08 12:30:55.314629800 +0300
++++ mars-game/src/CMakeLists.txt 2014-05-08 12:38:59.999570405 +0300
+@@ -68,7 +68,7 @@
+ TARGETS
+ mars
+ RUNTIME DESTINATION
+- ${CMAKE_INSTALL_PREFIX}/games
++ ${CMAKE_INSTALL_PREFIX}/bin
+ )
+ install(
+ FILES
+--- mars-game/src/System/window.original.cpp 2014-05-08 12:18:31.053934339 +0300
++++ mars-game/src/System/window.cpp 2014-05-08 12:19:45.633001973 +0300
+@@ -308,12 +308,12 @@
+ glEnable(GL_TEXTURE_2D);
+
+ if (shader)
+- shader->bind();
++ shader->bind(NULL);
+
+ window_.draw(toBeDrawn, states);
+
+ if (shader)
+- shader->unbind();
++ shader->bind(NULL);
+