summaryrefslogtreecommitdiffstats
path: root/o3d/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/plugin')
-rw-r--r--o3d/plugin/linux/main_linux.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/o3d/plugin/linux/main_linux.cc b/o3d/plugin/linux/main_linux.cc
index d2d79af..c462fac 100644
--- a/o3d/plugin/linux/main_linux.cc
+++ b/o3d/plugin/linux/main_linux.cc
@@ -71,6 +71,8 @@ static const char *kEnvVarsFilePath = O3D_PLUGIN_ENV_VARS_FILE;
static void DrawPlugin(PluginObject *obj) {
// Limit drawing to no more than once every timer tick.
if (!obj->draw_) return;
+ // Don't allow re-entrant rendering (can happen in Chrome)
+ if (obj->client()->IsRendering()) return;
obj->client()->RenderClient(true);
obj->draw_ = false;
}