From b734f0c0ae089e3bffa0ee410579788cf6a8d07b Mon Sep 17 00:00:00 2001 From: Felix Andrews Date: Wed, 4 Mar 2015 22:32:02 +0800 Subject: [PATCH] draw map layers in their correct order when using :with or :without options. --- src/play_clj/core_graphics.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/play_clj/core_graphics.clj b/src/play_clj/core_graphics.clj index 74179e2..b2293c2 100644 --- a/src/play_clj/core_graphics.clj +++ b/src/play_clj/core_graphics.clj @@ -526,6 +526,7 @@ specify which layers to render with or without. (set layer-names)) (u/throw-key-not-found k)) (map #(.indexOf ^java.util.List all-layer-names %)) + (sort) int-array (.render renderer))) (.render renderer))