fixed includes
This commit is contained in:
+4
-3
@@ -4,9 +4,10 @@
|
||||
#include <linmath.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "glfw.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "glfw.h"
|
||||
|
||||
// TODO split into smaller functions
|
||||
// TODO custom struct to remove glfw in signature
|
||||
void *init_window(Window **window, Parameters params,
|
||||
@@ -25,8 +26,8 @@ void *init_window(Window **window, Parameters params,
|
||||
}
|
||||
|
||||
// add context to window before creation
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
glfwWindowHint(GLFW_DECORATED, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user