How to do smooth OpenGL in a Plugin?

Please try this again on the latest develop. See this forum thread for details: