nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2e2d9b
)
gamnit: don't apply dynamic resolution to UI sprites
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 21 Nov 2017 19:24:59 +0000
(14:24 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/gamnit/depth/depth.nit
b/lib/gamnit/depth/depth.nit
index
1b08027
..
eea4123
100644
(file)
--- 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