JANK HACK RenderDoc fix

This commit is contained in:
2025-12-07 23:59:22 +01:00
parent 7c438d1284
commit d760e9e259

View File

@@ -70,6 +70,12 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
var blocks = try Blocks.init(allocator);
errdefer blocks.deinit(allocator);
// JANK HACK When this line is removed, capturing a frame with RenderDoc
// will crash the game with segfault reading address 0x140 (presumably
// within librenderdoc.so).
blocks.loadAll(engine, &materials, &textures, allocator);
const sampler = try engine.createSampler(.{
.mag_filter = .linear,
.min_filter = .linear,