summaryrefslogtreecommitdiff
path: root/platform/gl/gl-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/gl/gl-main.c')
-rw-r--r--platform/gl/gl-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 060b8e13..25b9d664 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -1573,6 +1573,11 @@ int main(int argc, char **argv)
ui_finish_fonts(ctx);
+#ifndef NDEBUG
+ if (fz_atoi(getenv("FZ_DEBUG_STORE")))
+ fz_debug_store(ctx);
+#endif
+
fz_drop_link(ctx, links);
fz_drop_page(ctx, page);
fz_drop_outline(ctx, outline);