[Mesa-dev] [PATCH 1/2] mesa: actually support compat profile creation with MESA_GL_VERSION_OVERRIDE
Timothy Arceri
tarceri at itsqueeze.com
Wed May 2 07:01:29 UTC 2018
Sorry this needs more work I will send another version.
On 02/05/18 16:54, Timothy Arceri wrote:
> ---
> src/mesa/drivers/dri/common/dri_util.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
> index 7cb6248b130..b6bc5361308 100644
> --- a/src/mesa/drivers/dri/common/dri_util.c
> +++ b/src/mesa/drivers/dri/common/dri_util.c
> @@ -389,10 +389,9 @@ driCreateContextAttribs(__DRIscreen *screen, int api,
> screen->max_gl_compat_version < 31)
> mesa_api = API_OPENGL_CORE;
>
> - if (mesa_api == API_OPENGL_COMPAT
> - && ((ctx_config.major_version > 3)
> - || (ctx_config.major_version == 3 &&
> - ctx_config.minor_version >= 2))) {
> + if (mesa_api == API_OPENGL_COMPAT &&
> + (ctx_config.major_version * 10 + ctx_config.minor_version) >
> + screen->max_gl_compat_version) {
> *error = __DRI_CTX_ERROR_BAD_API;
> return NULL;
> }
>
More information about the mesa-dev
mailing list