diff options
-rw-r--r-- | pugl/detail/implementation.c | 2 | ||||
-rw-r--r-- | test/test_utils.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c index 0eb02aa..e9e1ae9 100644 --- a/pugl/detail/implementation.c +++ b/pugl/detail/implementation.c @@ -82,7 +82,7 @@ puglSetDefaultHints(PuglHints hints) hints[PUGL_DEPTH_BITS] = 24; hints[PUGL_STENCIL_BITS] = 8; hints[PUGL_SAMPLES] = 0; - hints[PUGL_DOUBLE_BUFFER] = PUGL_FALSE; + hints[PUGL_DOUBLE_BUFFER] = PUGL_TRUE; hints[PUGL_SWAP_INTERVAL] = PUGL_DONT_CARE; hints[PUGL_RESIZABLE] = PUGL_FALSE; hints[PUGL_IGNORE_KEY_REPEAT] = PUGL_FALSE; diff --git a/test/test_utils.h b/test/test_utils.h index b79c0b9..80d279b 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -164,7 +164,7 @@ puglPrintTestUsage(const char* prog, const char* posHelp) printf("Usage: %s [OPTION]... %s\n\n" " -a Enable anti-aliasing\n" " -c Continuously animate and draw\n" - " -d Enable double-buffering\n" + " -d Directly draw to window (no double-buffering)\n" " -e Enable platform error-checking\n" " -f Fast drawing, explicitly disable vertical sync\n" " -h Display this help\n" @@ -180,7 +180,7 @@ puglParseTestOptions(int* pargc, char*** pargv) { PuglTestOptions opts = { 0, - 0, + PUGL_TRUE, PUGL_DONT_CARE, false, false, @@ -198,7 +198,7 @@ puglParseTestOptions(int* pargc, char*** pargv) } else if (!strcmp(argv[i], "-c")) { opts.continuous = true; } else if (!strcmp(argv[i], "-d")) { - opts.doubleBuffer = PUGL_TRUE; + opts.doubleBuffer = PUGL_FALSE; } else if (!strcmp(argv[i], "-e")) { opts.errorChecking = PUGL_TRUE; } else if (!strcmp(argv[i], "-f")) { |