Always create a debug context of OpenGL.

This commit is contained in:
IntegratedQuantum 2024-04-17 21:11:47 +02:00
parent 775dcc85fc
commit f0d8e8e6bf

View File

@ -618,9 +618,7 @@ pub const Window = struct {
@panic("Failed to initialize GLFW");
}
if(@import("builtin").mode == .Debug) {
c.glfwWindowHint(c.GLFW_OPENGL_DEBUG_CONTEXT, 1);
}
c.glfwWindowHint(c.GLFW_OPENGL_DEBUG_CONTEXT, 1);
c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MAJOR, 4);
c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MINOR, 6);