+ handle destruction of GL context in 3d viewer class + fix for OpenGL error message: 'Texture is not valid in the current context. Texture has not been destroyed'