From b31f69f5326074e6963c958c27b1846c8ef4745d Mon Sep 17 00:00:00 2001 From: peterino2 Date: Sat, 6 Sep 2025 21:02:42 -0700 Subject: [PATCH] saving --- engine/rend/src/sgpu/renderer.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/rend/src/sgpu/renderer.zig b/engine/rend/src/sgpu/renderer.zig index f5464a8..a132c05 100644 --- a/engine/rend/src/sgpu/renderer.zig +++ b/engine/rend/src/sgpu/renderer.zig @@ -146,7 +146,7 @@ pub const Renderer = struct { .shaderformatSpirv = true, .shaderformatDxil = true, .shaderformatMsl = true, - }, true, null); + }, builtin.mode == .Debug, null); self.window = platform.getInstance().window; self.scissor = .{ .x = 0, .y = 0, .w = platform.getInstance().windowExtent.x, .h = platform.getInstance().windowExtent.y }; @@ -1068,4 +1068,5 @@ const texture_sample_png align(8) = @embedFile("embedded/texture_sample.png").*; const primitive_box_obj align(8) = @embedFile("embedded/primitive_box.obj").*; const tracy = core.tracy; +const builtin = @import("builtin"); pub const SsaoSystem = @import("ssao.zig");