summaryrefslogtreecommitdiff
path: root/src/plugin-luaosmesa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaosmesa.cc')
-rw-r--r--src/plugin-luaosmesa.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin-luaosmesa.cc b/src/plugin-luaosmesa.cc
index 09929b7..daf0fd4 100644
--- a/src/plugin-luaosmesa.cc
+++ b/src/plugin-luaosmesa.cc
@@ -241,6 +241,9 @@ int sLua_plugin_osmesa::plugin_osmesa_proceed_statics(Lua * L, int n, int caller
}
static void _init_plugin(Lua * L) {
+ static bool done = false;
+ if (done) return;
+ done = true;
init_OSMesa();
Luaplugin_osmesa::pushstatics(L);
}