From: Alexis Laferrière Date: Tue, 21 Nov 2017 19:24:59 +0000 (-0500) Subject: gamnit: don't apply dynamic resolution to UI sprites X-Git-Url: http://nitlanguage.org gamnit: don't apply dynamic resolution to UI sprites Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/depth/depth.nit b/lib/gamnit/depth/depth.nit index 1b08027..eea4123 100644 --- a/lib/gamnit/depth/depth.nit +++ b/lib/gamnit/depth/depth.nit @@ -78,11 +78,12 @@ redef class App glDepthMask true perfs["gamnit depth particles"].add frame_core_depth_clock.lapse + # Stop using the dynamic resolution before drawing UI sprites + frame_core_dynamic_resolution_after display + frame_core_ui_sprites display perfs["gamnit depth ui_sprites"].add frame_core_depth_clock.lapse - frame_core_dynamic_resolution_after display - # Debug, show the light point of view #frame_core_shadow_debug display end