summaryrefslogtreecommitdiffstats
path: root/src/main.zig
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-10-21 11:25:07 +0000
committers-ol <s-ol@users.noreply.github.com>2019-10-21 11:25:07 +0000
commit7a229736d61ceda807a02a264df57e86a3ebb25c (patch)
treeb152a6a6f132cb807abc006759e4b66d493db894 /src/main.zig
parentmore glfw (diff)
downloadzig-imgui-7a229736d61ceda807a02a264df57e86a3ebb25c.tar.gz
zig-imgui-7a229736d61ceda807a02a264df57e86a3ebb25c.zip
first working render!
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 882faf0..5d5f24a 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,6 +1,7 @@
const c = @import("c.zig");
const std = @import("std");
const panic = std.debug.panic;
+const debug_gl = @import("debug_gl.zig");
const glfw_impl = @import("glfw_impl.zig");
const gl3_impl = @import("gl3_impl.zig");
@@ -21,9 +22,8 @@ pub fn main() !void {
c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MAJOR, 3);
c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MINOR, 2);
c.glfwWindowHint(c.GLFW_OPENGL_FORWARD_COMPAT, c.GL_TRUE);
+ c.glfwWindowHint(c.GLFW_OPENGL_DEBUG_CONTEXT, debug_gl.is_on);
c.glfwWindowHint(c.GLFW_OPENGL_PROFILE, c.GLFW_OPENGL_CORE_PROFILE);
-
- // c.glfwWindowHint(c.GLFW_OPENGL_DEBUG_CONTEXT, debug_gl.is_on);
// c.glfwWindowHint(c.GLFW_DEPTH_BITS, 0);
// c.glfwWindowHint(c.GLFW_STENCIL_BITS, 8);
c.glfwWindowHint(c.GLFW_RESIZABLE, c.GL_TRUE);