Drives the OpenGL-ES code path more robust when setting the shading model