From f0d8e8e6bf6276df9b5e3895617b1206f8857f03 Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Wed, 17 Apr 2024 21:11:47 +0200 Subject: [PATCH] Always create a debug context of OpenGL. --- src/main.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.zig b/src/main.zig index f681ba42..0cb508d8 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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);