Fix GL context when thumbnailing with GPU processing.