fix glMaterial