diff --git a/samples/Makefile b/samples/Makefile index f3824ba33..3fe0cfd0c 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -10,7 +10,7 @@ export CFLAGS = -W -Wall -ansi -I../../include $(DEBUGFLAGS) export LDFLAGS = export EXECPATH = ../bin -all: ftp-sample opengl-sample pong-sample shader-sample qt-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample +all: ftp-sample opengl-sample pong-sample qt-sample shader-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample ftp-sample: @(mkdir -p bin) diff --git a/samples/shader/Makefile b/samples/shader/Makefile index 3ff6b5d29..9b3f7f79a 100644 --- a/samples/shader/Makefile +++ b/samples/shader/Makefile @@ -3,7 +3,7 @@ OBJ = Shader.o all: $(EXEC) -post-fx: $(OBJ) +shader: $(OBJ) $(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system %.o: %.cpp diff --git a/samples/shader/Shader.cpp b/samples/shader/Shader.cpp index 2b7d9c760..a6427a86b 100644 --- a/samples/shader/Shader.cpp +++ b/samples/shader/Shader.cpp @@ -187,7 +187,8 @@ int main() case sf::Key::Numpad2 : entityShader.GotoPrevious(); break; case sf::Key::Numpad5 : entityShader.GotoNext(); break; case sf::Key::Numpad3 : globalShader.GotoPrevious(); break; - case sf::Key::Numpad6 : globalShader.GotoNext(); break; + case sf::Key::Numpad6 : globalShader.GotoNext(); break; + default : break; } // Update the text