fix software rendering.