aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11_gl.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-29 18:16:59 +0100
committerDavid Robillard <d@drobilla.net>2020-10-30 10:58:32 +0100
commitf9923d7b76d5c121f06f861273e6caf8a286b19e (patch)
treeb77bfe22b07e269912da6658e75c9eed8f8ca12c /src/x11_gl.c
parentcaf17373026a9de07ccd72edc282d46486257fb5 (diff)
downloadpugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.gz
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.bz2
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.zip
Remove logging API
This was missing from the C++ bindings and barely used anyway, so just remove it for now in the interests of simplicity and finalizing a stable API. The information previously logged in the X11 GL backend is now available programatically, so applications can print the same information portably if they like.
Diffstat (limited to 'src/x11_gl.c')
-rw-r--r--src/x11_gl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/x11_gl.c b/src/x11_gl.c
index bab85c6..34ac7e8 100644
--- a/src/x11_gl.c
+++ b/src/x11_gl.c
@@ -109,23 +109,6 @@ puglX11GlConfigure(PuglView* view)
view->hints[PUGL_DOUBLE_BUFFER] = puglX11GlGetAttrib(
display, fbc[0], GLX_DOUBLEBUFFER);
- char msg[256];
-
- snprintf(
- msg,
- sizeof(msg),
- "Using visual 0x%lX: R=%d G=%d B=%d A=%d D=%d DOUBLE=%d SAMPLES=%d\n",
- impl->vi->visualid,
- puglX11GlGetAttrib(display, fbc[0], GLX_RED_SIZE),
- puglX11GlGetAttrib(display, fbc[0], GLX_GREEN_SIZE),
- puglX11GlGetAttrib(display, fbc[0], GLX_BLUE_SIZE),
- puglX11GlGetAttrib(display, fbc[0], GLX_ALPHA_SIZE),
- puglX11GlGetAttrib(display, fbc[0], GLX_DEPTH_SIZE),
- puglX11GlGetAttrib(display, fbc[0], GLX_DOUBLEBUFFER),
- puglX11GlGetAttrib(display, fbc[0], GLX_SAMPLES));
-
- view->world->logFunc(view->world, PUGL_LOG_LEVEL_INFO, msg);
-
XFree(fbc);
return PUGL_SUCCESS;