summaryrefslogtreecommitdiff
path: root/src/gl/window.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-06-16 22:46:40 -0500
committersanine <sanine.not@pm.me>2022-06-16 22:46:40 -0500
commit98a9551d2e47bb53d0069d71297924cf697f03c3 (patch)
tree12bbe04ae2287c86f21298d9194238b4ad95b782 /src/gl/window.c
parent2c566f629c3ddb0bee6e338ee6b691480c7dd280 (diff)
throw error on glfwInit fail
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;
}