aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-12 21:09:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-12 21:09:53 +0200
commit08dcbfa7772149bcdcc0ab660a897853a30103a0 (patch)
treec3789dadef191e8942993d1e8fcafc266377ed8a /tests
parent4aa7273eea642bff78477b0b220c7056628b13a8 (diff)
compressed texture
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)