DEADSOFTWARE

gl: fix flickering
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Mon, 18 Jul 2022 15:03:12 +0000 (18:03 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 08:54:07 +0000 (11:54 +0300)
src/game/Doom2DF.lpr
src/game/g_menu.pas
src/game/g_netmaster.pas
src/game/renders/opengl/r_render.pas

index 98c39b5d6c5b15c55b27976b3878433cdea94d66..1e358b9224d6d6a94f33242dc3fca5cbd417fccb 100644 (file)
@@ -343,9 +343,6 @@ begin
     {$IFDEF ENABLE_RENDER}
       r_Render_Draw;
     {$ENDIF}
-    {$IFDEF ENABLE_SYSTEM}
-      sys_Repaint;
-    {$ENDIF}
     Frame := Time
   end
   else
index 9749ad077c3ac0e4e9d8c75e8d6f2a71c79cd712..7afe98dd805c2e0825cc0127741a2b8041d66990 100644 (file)
@@ -895,9 +895,6 @@ begin
   {$IFDEF ENABLE_RENDER}
     r_Render_Draw;
   {$ENDIF}
-  {$IFDEF ENABLE_SYSTEM}
-    sys_Repaint;
-  {$ENDIF}
 
   slReturnPressed := True;
   if g_Net_Slist_Fetch(slCurrent) then
index 2774b4498bea81b779896b976e8f609682cb9bb5..e92b08728be8ff3a9b6f120148cc97e2ff93519d 100644 (file)
@@ -1793,9 +1793,6 @@ begin
       {$IFDEF ENABLE_RENDER}
         r_Render_Draw;
       {$ENDIF}
-      {$IFDEF ENABLE_SYSTEM}
-        sys_Repaint;
-      {$ENDIF}
 
       if g_Net_Slist_Fetch(SL) then
       begin
index ec08bf13b4c4b2274e8902855850f8d8a462913c..ff02ebab5708c8b46a45083c5d7913fe325e8aea 100644 (file)
@@ -485,8 +485,8 @@ implementation
 
     // TODO draw holmes interface
 
-    glFinish();
     glFlush();
+    glFinish();
     sys_Repaint;
   end;