opengl: skip deleting OpenGL objects if there's no current context
Otherwise, when a GPU reset happens, we might crash trying to run OpenGL functions without a context (which can't be made current, because the context is reset)
(cherry picked from commit f9b4d2de)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com