fixed texture flag passing