Fixed texture state being dirty

Change-Id: I0ffd34627d22440732745e22b0f8934c67c91d0e