Some more preparations for OpenGL ES renderer.