From 08dcbfa7772149bcdcc0ab660a897853a30103a0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 12 Oct 2021 21:09:53 +0200 Subject: compressed texture --- tests/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') 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) -- cgit v1.2.3