Provisional fix for texture overwrite issue on other graphics backends.