Skip to content

Commit

Permalink
Fix default OpenGL version in usage/help
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaivel committed Jun 25, 2024
1 parent 583e68f commit d47b274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ options:
-o enables fps overlay on clients (shows server side fps)
-n enable networking instead of shared memory
-x remove shared memory file
-g [MAJOR.MINOR] report specific opengl version (default: 2.1)
-g [MAJOR.MINOR] report specific opengl version (default: 3.3)
-r [WIDTHxHEIGHT] set max resolution (default: 1920x1080)
-m [SIZE] max amount of megabytes program may allocate (default: 16mib)
-p [PORT] if networking is enabled, specify which port to use (default: 3000)
Expand Down
4 changes: 2 additions & 2 deletions src/server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static const char *usage =
" -o enables fps overlay on clients (shows server side fps)\n"
" -n enable network server instead of using shared memory\n"
" -x remove shared memory file\n"
" -g [MAJOR.MINOR] report specific opengl version (default: 2.1)\n"
" -g [MAJOR.MINOR] report specific opengl version (default: %d.%d)\n"
" -r [WIDTHxHEIGHT] set max resolution (default: 1920x1080)\n"
" -m [SIZE] max amount of megabytes program may allocate (default: 16mib)\n"
" -p [PORT] if networking is enabled, specify which port to use (default: 3000)\n";
Expand Down Expand Up @@ -98,7 +98,7 @@ int main(int argc, char **argv)
for (int i = 1; i < argc; i++) {
switch (argv[i][1]) {
case 'h':
printf("%s", usage);
printf(usage, SGL_DEFAULT_MAJOR, SGL_DEFAULT_MINOR);
return 0;
case 'v':
print_virtual_machine_arguments = true;
Expand Down

0 comments on commit d47b274

Please sign in to comment.