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)
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)