diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 21:52:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 21:52:20 +0100 |
commit | 59296974c71dfc7db7d003b40af84fa36a5e93c6 (patch) | |
tree | da05c022c534e8bd1d2800310e9c80c4d98c6046 /examples/pugl_shader_demo.c | |
parent | 416478739315ca41ad236197b25f87b83ab7f312 (diff) | |
download | pugl-59296974c71dfc7db7d003b40af84fa36a5e93c6.tar.gz pugl-59296974c71dfc7db7d003b40af84fa36a5e93c6.tar.bz2 pugl-59296974c71dfc7db7d003b40af84fa36a5e93c6.zip |
Avoid "else" after "return"
Diffstat (limited to 'examples/pugl_shader_demo.c')
-rw-r--r-- | examples/pugl_shader_demo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c index d038b3f..087afc5 100644 --- a/examples/pugl_shader_demo.c +++ b/examples/pugl_shader_demo.c @@ -249,7 +249,9 @@ parseOptions(PuglTestApp* app, int argc, char** argv) if (endptr != argv[1] + strlen(argv[1])) { logError("Invalid GL major version: %s\n", argv[1]); return 1; - } else if (app->glMajorVersion == 4) { + } + + if (app->glMajorVersion == 4) { app->glMinorVersion = 2; } else if (app->glMajorVersion != 3) { logError("Unsupported GL major version %d\n", app->glMajorVersion); |