From 677145f1a1d56867834cdb791ce9f9d89033c2a2 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Sun, 14 Aug 2022 01:39:09 +0200 Subject: [PATCH] Add missing code of the previous commit --- Diya/DiyaBoot.class.st | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Diya/DiyaBoot.class.st b/Diya/DiyaBoot.class.st index 3010e06..ac06255 100644 --- a/Diya/DiyaBoot.class.st +++ b/Diya/DiyaBoot.class.st @@ -103,14 +103,13 @@ DiyaBoot >> initialize [ { #category : #events } DiyaBoot >> render [ |launcher| - DiyaRendererContext uniqueInstance. launcher := DiyaApplicationLauncher uniqueInstance. launcher setup. self GLinit. [ launcher running ] whileTrue: [ DiyaClock uniqueInstance tick. launcher main. - SDL2 glSwapWindow: window. + DiyaRendererContext uniqueInstance render. SDL2 delay: (0 max: (1000/ self class maxFPS) asInteger - (DiyaClock uniqueInstance lapDelta asMilliSeconds)).