vrend: hide vrend_winsys_glx

It is properly abstracted.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 4 years ago
parent ce03b7a387
commit 8dd1242c3f
  1. 6
      src/vrend_winsys.c
  2. 8
      src/vrend_winsys.h

@ -24,6 +24,10 @@
#include "vrend_winsys.h"
#ifdef HAVE_EPOXY_GLX_H
#include "vrend_winsys_glx.h"
#endif
#include <stddef.h>
int use_context = CONTEXT_NONE;
@ -34,7 +38,7 @@ struct virgl_gbm *gbm = NULL;
#endif
#ifdef HAVE_EPOXY_GLX_H
struct virgl_glx *glx_info = NULL;
static struct virgl_glx *glx_info = NULL;
#endif
int vrend_winsys_init(uint32_t flags, int preferred_fd)

@ -32,10 +32,6 @@
#include "vrend_winsys_egl.h"
#endif
#ifdef HAVE_EPOXY_GLX_H
#include "vrend_winsys_glx.h"
#endif
#include "virglrenderer.h"
enum {
@ -53,10 +49,6 @@ extern struct virgl_egl *egl;
extern struct virgl_gbm *gbm;
#endif
#ifdef HAVE_EPOXY_GLX_H
extern struct virgl_glx *glx_info;
#endif
int vrend_winsys_init(uint32_t flags, int preferred_fd);
void vrend_winsys_cleanup(void);

Loading…
Cancel
Save