dri_util: don't fail when not supporting ARB_compatibility with GL3.1
authorAndres Gomez <agomez@igalia.com>
Fri, 2 Mar 2018 22:55:46 +0000 (00:55 +0200)
committerAndres Gomez <agomez@igalia.com>
Mon, 9 Apr 2018 10:46:34 +0000 (13:46 +0300)
commitc6067fcd0747c85dee333b9b5726fc7fec998c1b
tree3c85ceb05944ede9780af5e1ea4e4b04559df393
parent044acd3569cbe689712be3c35544ceb7da4e5347
dri_util: don't fail when not supporting ARB_compatibility with GL3.1

Currently, any driver that does not support the ARB_compatibility
extension will fail on GL3.1 context creation if the application does
not request the forward-compatiblity flag.

Restore the original check which changes mesa_api to API_OPENGL_CORE,
only when:
 - GL3.1 is requested, without the forward-compatiblity flag.
 - driver does not support ARB_compatibility - as deduced by
max_gl_compat_version.

Fixes: a0c8b49284e ("mesa: enable OpenGL 3.1 with ARB_compatibility")

v2:
 - Improve commit log (Emil).
 - Provide a correct explanation on the features documentation (Ian).

Cc: Marek Olšák <marek.olsak@amd.com>
Cc: Ian Romanick <ian.d.romanick@intel.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
docs/features.txt
src/mesa/drivers/dri/common/dri_util.c