gamnit: don't apply dynamic resolution to UI sprites
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 21 Nov 2017 19:24:59 +0000 (14:24 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 27 Nov 2017 23:57:24 +0000 (18:57 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/depth/depth.nit

index 1b08027..eea4123 100644 (file)
@@ -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