naming(GraphicsAPI): repeat -> presentLastTarget

pull/7620/head
Qwerasd 2025-06-20 15:51:48 -06:00
parent a802108558
commit ab926fc842
3 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ pub inline fn present(self: *Metal, target: Target, sync: bool) !void {
} }
/// Present the last presented target again. (noop for Metal) /// Present the last presented target again. (noop for Metal)
pub inline fn repeat(self: *Metal) !void { pub inline fn presentLastTarget(self: *Metal) !void {
_ = self; _ = self;
} }

View File

@ -357,7 +357,7 @@ pub fn present(self: *OpenGL, target: Target) !void {
} }
/// Present the last presented target again. /// Present the last presented target again.
pub fn repeat(self: *OpenGL) !void { pub fn presentLastTarget(self: *OpenGL) !void {
if (self.last_target) |target| try self.present(target); if (self.last_target) |target| try self.present(target);
} }

View File

@ -1274,7 +1274,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
// We still need to present the last target again, because the // We still need to present the last target again, because the
// apprt may be swapping buffers and display an outdated frame // apprt may be swapping buffers and display an outdated frame
// if we don't draw something new. // if we don't draw something new.
try self.api.repeat(); try self.api.presentLastTarget();
return; return;
} }
self.cells_rebuilt = false; self.cells_rebuilt = false;