[colobot] 288/377: Corrected a mistake in -glprofile argument parsing

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 8414ae794d2baea8d244e1d52ceb9de88f162eb1
Author: Tomasz Kapuściński <tomaszkax86 at gmail.com>
Date:   Wed Feb 17 23:04:34 2016 +0100

    Corrected a mistake in -glprofile argument parsing
---
 src/app/app.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/app/app.cpp b/src/app/app.cpp
index 8d2d769..2366020 100644
--- a/src/app/app.cpp
+++ b/src/app/app.cpp
@@ -466,8 +466,11 @@ ParseArgsStatus CApplication::ParseArguments(int argc, char *argv[])
                     m_glProfile = SDL_GL_CONTEXT_PROFILE_ES;
                     m_glProfileOverride = true;
                 }
-
-                GetLogger()->Error("Invalid OpenGL profile: %s\n", optarg);
+                else
+                {
+                    GetLogger()->Error("Invalid OpenGL profile: %s\n", optarg);
+                    return PARSE_ARGS_FAIL;
+                }
                 break;
             }
             default:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list