Compile with tcc

This commit is contained in:
2022-06-23 04:04:35 +00:00
parent aa7d36b7d3
commit e6ca94c2df
2 changed files with 10 additions and 7 deletions

View File

@@ -40,11 +40,12 @@ void error_callback(int error, const char *description)
void engine_init()
{
glfwSetErrorCallback(error_callback);
/* Initialize GLFW */
if (!glfwInit()) {
printf("Could not init GLFW\n");
}
glfwSetErrorCallback(error_callback);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);