naming(GraphicsAPI): repeat -> presentLastTarget
parent
a802108558
commit
ab926fc842
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue