Skip to content

Commit

Permalink
Always create a debug context of OpenGL.
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegratedQuantum committed Apr 17, 2024
1 parent 775dcc8 commit f0d8e8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f0d8e8e

Please sign in to comment.