dri: set the __DRI_API_OPENGL bit based on max gl compat version
authorFrank Binns <frank.binns@imgtec.com>
Fri, 31 Jul 2015 08:11:47 +0000 (09:11 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 5 Aug 2015 03:03:16 +0000 (20:03 -0700)
commit7d88413ade2c41054f79b20338253aacf1ac341d
tree1c4919bfd540d731dc1d5e072fb405a058620875
parentb2c5986ea1c8e66c4e0a05bcacbcf28c27f5b183
dri: set the __DRI_API_OPENGL bit based on max gl compat version

This matches similar behaviour for the __DRI_API_OPENGL_CORE bit.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/common/dri_util.c