glx: Create proper server dependency for GLX_EXT_create_context_es2_profile
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Apr 2015 16:24:06 +0000 (09:24 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 16 Apr 2015 01:11:54 +0000 (18:11 -0700)
commit8957c9e448670e5aa78065619692cf285f9b0a30
tree119b34fcb10cbd5f163e4bbd0db1f03fff884e01
parentb229e6c7dee2bb6b1736d6867790dfcd1c50f623
glx: Create proper server dependency for GLX_EXT_create_context_es2_profile

Previously GLX_EXT_create_context_es2_profile was marked as "direct
only" so that it would not depend on server support.  Since the
extension required functions that are part of
GLX_ARB_create_context_profile, support for the EXT was disabled if the
ARB was not supported.

This was complete rubbish.  If the server supported the ARB but not the
EXT, sending a request with GLX_CONTEXT_ES2_PROFILE_BIT_EXT would result
in GLXBadProfileARB.

Instead of the misguided hack, make GLX_EXT_create_context_es2_profile
properly depend on server support by not marking it as "direct only."

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
src/glx/glxextensions.c