Finally fixed shadowmapping for real. Apparently all activated
vertexAttribPointers have to be set before glDraw* call even though they
are not used...