Prepare for adding opengl.