remove erroneous opengl instantiation