Correct bad logic in Dri2 code

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Do not enable Dri2 if we are on a render-node

Signed-off-by: Axel Davy <axel.davy@ens.fr>