[virglrenderer-devel] [PATCH 1/4] vrend_renderer.h: include epoxy/gl.h because it is actually needed here (v2)

Gert Wollny gert.wollny at collabora.com
Wed Jun 13 10:40:59 UTC 2018


v2: With epoxy GL/gl.h is not directly included (Dave Airlie).
    Instead move the include of epoxy/gl.h from vrend_renderer.c to
    vrend_renderer.h

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/vrend_renderer.c | 2 --
 src/vrend_renderer.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 790dc2f..a068d5d 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -25,8 +25,6 @@
 #include "config.h"
 #endif
 
-#include <epoxy/gl.h>
-
 #include <unistd.h>
 #include <stdio.h>
 #include <errno.h>
diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h
index dc1a618..14f865b 100644
--- a/src/vrend_renderer.h
+++ b/src/vrend_renderer.h
@@ -30,6 +30,7 @@
 #include "virgl_protocol.h"
 #include "vrend_iov.h"
 #include "virgl_hw.h"
+#include <epoxy/gl.h>
 
 typedef void *virgl_gl_context;
 typedef void *virgl_gl_drawable;
-- 
2.17.1



More information about the virglrenderer-devel mailing list