From 85aa80f3959292209a63fe94b1ec5d33112b5f1f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 10 May 2019 03:26:09 +0200 Subject: [PATCH] flushes to prevent distorted graphics in web version --- hud.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hud.cpp b/hud.cpp index ec0199e6..c50e0fae 100644 --- a/hud.cpp +++ b/hud.cpp @@ -377,6 +377,7 @@ void draw_radar(bool cornermode) { } quickqueue(); + glflush(); for(auto& r: radarpoints) displaychr(int(cx + rad * r.h[0]), int(cy - rad * r.h[2]/3 + rad * r.h[1]*2/3), 0, 8, r.glyph, r.color); @@ -538,6 +539,7 @@ void drawStats() { } } } + glflush(); calcparam(); string s0; @@ -621,6 +623,7 @@ XLAT( #endif } + glflush(); achievement_display(); callhooks(hooks_stats);