diff options
author | David Robillard <d@drobilla.net> | 2019-02-15 12:39:31 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-02-15 13:13:56 +0100 |
commit | cf80f78f808e402d06dc891fce08b0f3b3865c15 (patch) | |
tree | d24a66bc4b16610693ea569bb31784c53cd8b552 /pugl_cairo_test.c | |
parent | 373b2b784648375064377dfc64a3c83892cf9ade (diff) | |
download | pugl-cf80f78f808e402d06dc891fce08b0f3b3865c15.tar.gz pugl-cf80f78f808e402d06dc891fce08b0f3b3865c15.tar.bz2 pugl-cf80f78f808e402d06dc891fce08b0f3b3865c15.zip |
Remove PUGL_CAIRO_GL
The old cairo_gl.h header or something similar is easy enough to use in
application code if someone wants to do this, and maintaining a separate
context type for it is a hassle and arguably out of scope.
Diffstat (limited to 'pugl_cairo_test.c')
-rw-r--r-- | pugl_cairo_test.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pugl_cairo_test.c b/pugl_cairo_test.c index 76c3ee7..78abcfa 100644 --- a/pugl_cairo_test.c +++ b/pugl_cairo_test.c @@ -162,19 +162,15 @@ onEvent(PuglView* view, const PuglEvent* event) int main(int argc, char** argv) { - bool useGL = false; bool ignoreKeyRepeat = false; bool resizable = false; for (int i = 1; i < argc; ++i) { if (!strcmp(argv[i], "-h")) { printf("USAGE: %s [OPTIONS]...\n\n" - " -g Use OpenGL\n" " -h Display this help\n" " -i Ignore key repeat\n" " -r Resizable window\n", argv[0]); return 0; - } else if (!strcmp(argv[i], "-g")) { - useGL = true; } else if (!strcmp(argv[i], "-i")) { ignoreKeyRepeat = true; } else if (!strcmp(argv[i], "-r")) { @@ -187,7 +183,7 @@ main(int argc, char** argv) PuglView* view = puglInit(NULL, NULL); puglInitWindowSize(view, 512, 512); puglInitResizable(view, resizable); - puglInitContextType(view, useGL ? PUGL_CAIRO_GL : PUGL_CAIRO); + puglInitContextType(view, PUGL_CAIRO); puglIgnoreKeyRepeat(view, ignoreKeyRepeat); puglSetEventFunc(view, onEvent); |