From 44d51f28445d40451bc600b26f3b4b17fd003c67 Mon Sep 17 00:00:00 2001 From: Yaron Cohen-Tal Date: Thu, 3 Sep 2015 23:17:39 +0300 Subject: Fix support for a static build of Epoxy. Add support building and running tests with CMake. Add support for linking with the static run-time library with MSVC. --- test/glx_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/glx_common.c') diff --git a/test/glx_common.c b/test/glx_common.c index fda1602..d1e5954 100644 --- a/test/glx_common.c +++ b/test/glx_common.c @@ -72,6 +72,8 @@ 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, @@ -119,7 +121,7 @@ get_fbconfig_for_visinfo(Display *dpy, XVisualInfo *visinfo) if (glXGetFBConfigAttrib(dpy, configs[i], GLX_VISUAL_ID, &v)) continue; - if (v == visinfo->visualid) { + if (v == (int)visinfo->visualid) { ret = configs[i]; break; } -- cgit v1.2.1