summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pdf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r--tex/context/base/mlib-pdf.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua
index a4f7f3137..44d2367a1 100644
--- a/tex/context/base/mlib-pdf.lua
+++ b/tex/context/base/mlib-pdf.lua
@@ -10,6 +10,8 @@ local format, concat, gsub = string.format, table.concat, string.gsub
local texsprint = tex.sprint
local abs, sqrt, round = math.abs, math.sqrt, math.round
+local allocate = utilities.storage.allocate
+
local report_mplib = logs.new("mplib")
local mplib = mplib
@@ -24,6 +26,7 @@ local metapost = metapost
metapost.multipass = false
metapost.n = 0
metapost.optimize = true -- false
+metapost.specials = allocate()
--~ Because in MKiV we always have two passes, we save the objects. When an extra
--~ mp run is done (due to for instance texts identifier in the parse pass), we
@@ -225,8 +228,6 @@ end
metapost.flushnormalpath = flushnormalpath
-metapost.specials = metapost.specials or { }
-
-- we have two extension handlers, one for pre and postscripts, and one for colors
-- the flusher is pdf based, if another backend is used, we need to overload the