summaryrefslogtreecommitdiff
path: root/src/gl/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl/window.c')
-rw-r--r--src/gl/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gl/window.c b/src/gl/window.c
index 80d636d..834d6ce 100644
--- a/src/gl/window.c
+++ b/src/gl/window.c
@@ -5,6 +5,8 @@
int gl_init(lua_State *L)
{
- glfwInit();
+ if (glfwInit() != GLFW_TRUE) {
+ hs_throw_error(L, "failed to initialize GLFW");
+ }
return 0;
}