aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/mgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/mgl.h')
-rw-r--r--include/mgl/mgl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mgl/mgl.h b/include/mgl/mgl.h
index e906bc1..15020e9 100644
--- a/include/mgl/mgl.h
+++ b/include/mgl/mgl.h
@@ -5,13 +5,14 @@
/* Display* on x11 */
typedef void* mgl_connection;
+typedef struct mgl_context mgl_context;
-typedef struct {
+struct mgl_context {
mgl_connection connection;
GLXContext glx_context;
_XVisualInfo *visual_info;
mgl_gl gl;
-} mgl_context;
+};
/*
Safe to call multiple times, but will only be initialized the first time called.