From 438b0a35bbfcb16cfcc2d2ec872fc3ad6fc7fb1c Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 5 Jun 2023 02:09:40 +0200 Subject: [PATCH] Disabled sampling to prevent defects at edges of sprite textures. --- src/context.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.zig b/src/context.zig index f6fdbdd..a5c9675 100644 --- a/src/context.zig +++ b/src/context.zig @@ -47,8 +47,8 @@ pub const Context = struct { const events = try allegro.createEventQueue(); allegro.setNewDisplayOption(allegro.NewDisplayOption.VSYNC, 1, allegro.OptionImportance.SUGGEST); - allegro.setNewDisplayOption(allegro.NewDisplayOption.SAMPLE_BUFFERS, 1, allegro.OptionImportance.REQUIRE); - allegro.setNewDisplayOption(allegro.NewDisplayOption.SAMPLES, 4, allegro.OptionImportance.REQUIRE); + // allegro.setNewDisplayOption(allegro.NewDisplayOption.SAMPLE_BUFFERS, 1, allegro.OptionImportance.REQUIRE); + // allegro.setNewDisplayOption(allegro.NewDisplayOption.SAMPLES, 4, allegro.OptionImportance.REQUIRE); allegro.setNewDisplayFlags(allegro.NewDisplayFlags{ .RESIZABLE = true }); const display = try allegro.createDisplay(DefaultDisplayWidth, DefaultDisplayHeight);