Set texture parameters before creating the texture

Change-Id: Ia593faaa8aa5c5d6ecf0ca2126d8e5a8f901590a