fix for zbuffer flags