From 8779a5b84cefba11a8644be295973150ab3d630f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 13 May 2022 14:31:53 +0200 Subject: [PATCH] glx: set max values for pbuffer width / height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this change the values are always 0. This breaks Maya which uses this value to create a pbuffer (and then fails). This commit is based on b91e1e38e87 which does the same for EGL. Cc: mesa-stable Reviewed-by: Marek Olšák Reviewed-by: Adam Jackson Part-of: --- src/glx/glxconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c index f8dc3ce6086..e67d5fadf41 100644 --- a/src/glx/glxconfig.c +++ b/src/glx/glxconfig.c @@ -145,10 +145,10 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return) *value_return = mode->fbconfigID; return 0; case GLX_MAX_PBUFFER_WIDTH: - *value_return = mode->maxPbufferWidth; + *value_return = 4096; /* _EGL_MAX_PBUFFER_WIDTH */ return 0; case GLX_MAX_PBUFFER_HEIGHT: - *value_return = mode->maxPbufferHeight; + *value_return = 4096; /* _EGL_MAX_PBUFFER_HEIGHT */ return 0; case GLX_MAX_PBUFFER_PIXELS: *value_return = mode->maxPbufferPixels;