diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2024-02-05 07:03:01 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2024-02-05 07:03:01 +0000 |
| commit | d8b46657425c6b806584d10fa50b11d49ba03850 (patch) | |
| tree | 55f9262ea7554ef93318f8ddcc18c709e46590ea /src/engine.c | |
| parent | cac45ae6553e0e3950a6826047cda11e8ecf91ac (diff) | |
Add GLAD
Diffstat (limited to 'src/engine.c')
| -rw-r--r-- | src/engine.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/engine.c b/src/engine.c index 5401bd1..4c4f0cb 100644 --- a/src/engine.c +++ b/src/engine.c @@ -264,11 +264,7 @@ struct glfw_ctx initialize_GLFW( glfwMakeContextCurrent(window); - glewExperimental = true; - if (glewInit() != GLEW_OK) { - ERROR("failed to initialize glew!\n"); - exit(EXIT_FAILURE); - } + gladLoadGL(glfwGetProcAddress); // TODO: Replace with callback //glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE); @@ -298,7 +294,7 @@ Platform* engine_init(const char* windowtitle, v2_i32 windowsize, const Asset_TextureSpec* textures[]) { #ifdef BENCHMARK - u32 init_start = glfwGetTime(); + u32 init_start = SDL_GetTicks(); #endif #if defined(__linux) || defined(__linux__) || defined(linux) |
