fixing texture read