aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/window/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/window/window.h')
-rw-r--r--include/mgl/window/window.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index cb8baf6..9d7086c 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -5,9 +5,8 @@
#include "../system/vec.h"
#include <stdbool.h>
-/* Vsync is automatically set for windows created, if supported by the system */
+/* Vsync is automatically set for created windows, if supported by the system */
-typedef struct __GLXcontextRec *GLXContext;
typedef struct mgl_event mgl_event;
/* x11 window handle. TODO: Add others when wayland, etc is added */
typedef unsigned long mgl_window_handle;
@@ -21,7 +20,7 @@ typedef struct {
struct mgl_window {
mgl_window_handle window;
- GLXContext glx_context;
+ void *context;
mgl_vec2i size;
/* relative to the top left of the window. only updates when the cursor is inside the window */
mgl_vec2i cursor_position;