aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/main.c b/tests/main.c
index fdd6cfe..7a40d80 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -43,14 +43,16 @@ int main(int argc, char **argv) {
return 1;
mgl_texture texture;
- mgl_window_callback window_callback;
- window_callback.draw = draw;
Userdata userdata;
userdata.texture = &texture;
+ mgl_window_callback window_callback;
+ window_callback.userdata = &userdata;
+ window_callback.draw = draw;
+
mgl_window window;
- if(mgl_window_create(&window, "mgl", 1280, 720, &window_callback, &userdata) != 0)
+ if(mgl_window_create(&window, "mgl", 1280, 720, &window_callback) != 0)
return 1;
if(mgl_texture_load_from_file(&texture, "X11.png") != 0)