fix render engine/texture bind issues