Commit 8472045b authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

mesa_glinterop: remove inclusion of GLX header

Since we only need partial information about the GLX symbols we can
forward declare them and drop the include. Obviously each user of the
said API will needs more than what's provides, so they'll include the
GLX header.

If they don't, the compiler will give us a nice warning ;-)
Signed-off-by: default avatarEmil Velikov <>
Reviewed-by: default avatarMarek Olšák <>
Tested-by: default avatarTom Stellard <>
parent b5f9820d
......@@ -51,13 +51,16 @@
#include <stddef.h>
#include <GL/glx.h>
#include <EGL/egl.h>
#ifdef __cplusplus
extern "C" {
/* Forward declarations to avoid inclusion of GL/glx.h */
typedef struct _XDisplay Display;
typedef struct __GLXcontextRec *GLXContext;
/** Returned error codes. */
enum {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment