Fixed opengl issue on video gallery