diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index a442a5797d..78234a1fbd 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -527,7 +527,9 @@ render_frame() { report_errors(); _decal_level = 0; +#ifdef DO_PSTATS _vertices_display_list_pcollector.clear_level(); +#endif // First, clear the entire window. clear_framebuffer();