From 68d4b40cd00dd0ec2f0ed09033f8e05a98e5ca2d Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 21 Aug 2022 21:58:39 -0500 Subject: fix segfault with wdata --- src/gl/window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gl') diff --git a/src/gl/window.c b/src/gl/window.c index 5ed9427..075bd6c 100644 --- a/src/gl/window.c +++ b/src/gl/window.c @@ -16,6 +16,7 @@ struct window_data * create_window_data(lua_State *L) return NULL; wdata->L = L; wdata->framebuffer_size_callback = LUA_NOREF; + return wdata; } int window_create(lua_State *L); -- cgit v1.2.1