fixing virtual function for opengl plot caching