CHERRY fix bug in texture resolution