Adding GL error printing