Flushing texture and buffer IDs on a memory warning.