Drives the OpenGL-ES code path more robust, especially when dealing with the materials