fix texture bindings.