diff options
Diffstat (limited to 'test/glx_common.c')
-rw-r--r-- | test/glx_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/glx_common.c b/test/glx_common.c index d1e5954..fda1602 100644 --- a/test/glx_common.c +++ b/test/glx_common.c @@ -72,8 +72,6 @@ get_glx_window(Display *dpy, XVisualInfo *visinfo, bool map) Window root_win = RootWindow(dpy, screen); Window win; - EPOXY_UNUSED(map); - window_attr.background_pixel = 0; window_attr.border_pixel = 0; window_attr.colormap = XCreateColormap(dpy, root_win, @@ -121,7 +119,7 @@ get_fbconfig_for_visinfo(Display *dpy, XVisualInfo *visinfo) if (glXGetFBConfigAttrib(dpy, configs[i], GLX_VISUAL_ID, &v)) continue; - if (v == (int)visinfo->visualid) { + if (v == visinfo->visualid) { ret = configs[i]; break; } |