Update leenkx/Sources/iron/App.hx

This commit is contained in:
2025-08-14 20:27:20 +00:00
parent 7cca955fc5
commit ef99b800e0

View File

@ -55,7 +55,6 @@ class App {
iron.system.Time.update();
if (lastw == -1) {
lastw = App.w();
lasth = App.h();
@ -115,22 +114,6 @@ class App {
for (cb in endFrameCallbacks) cb();
updateTime = kha.Scheduler.realTime() - startTime;
#end
// Rebuild projection on window resize
if (lastw == -1) {
lastw = App.w();
lasth = App.h();
}
if (lastw != App.w() || lasth != App.h()) {
if (onResize != null) onResize();
else {
if (Scene.active != null && Scene.active.camera != null) {
Scene.active.camera.buildProjection();
}
}
}
lastw = App.w();
lasth = App.h();
}
static function render(frames: Array<kha.Framebuffer>) {