JANK HACK RenderDoc fix
This commit is contained in:
@@ -70,6 +70,12 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
|
|||||||
var blocks = try Blocks.init(allocator);
|
var blocks = try Blocks.init(allocator);
|
||||||
errdefer blocks.deinit(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(.{
|
const sampler = try engine.createSampler(.{
|
||||||
.mag_filter = .linear,
|
.mag_filter = .linear,
|
||||||
.min_filter = .linear,
|
.min_filter = .linear,
|
||||||
|
|||||||
Reference in New Issue
Block a user