Release the OpenGL context when the device is released.