diff --git a/src/virglrenderer.c b/src/virglrenderer.c index 1447f33..dd39d40 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -41,7 +41,6 @@ #ifdef HAVE_EPOXY_EGL_H #include "virgl_gbm.h" #include "virgl_egl.h" -struct virgl_gbm *gbm = NULL; #endif #ifdef HAVE_EPOXY_GLX_H diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index b8deb0e..99ac700 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -10148,6 +10148,7 @@ void vrend_print_context_name(struct vrend_context *ctx) #ifdef HAVE_EPOXY_EGL_H struct virgl_egl *egl = NULL; +struct virgl_gbm *gbm = NULL; #endif int virgl_has_gl_colorspace(void) diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index 3ca604e..b09edee 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -68,6 +68,7 @@ enum { extern int use_context; #ifdef HAVE_EPOXY_EGL_H extern struct virgl_egl *egl; +extern struct virgl_gbm *gbm; #endif