glx: set max values for pbuffer width / height

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 b91e1e38e8 which does the same
for EGL.

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16496>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2022-05-13 14:31:53 +02:00 committed by Marge Bot
parent d22eeb5ae0
commit 8779a5b84c
1 changed files with 2 additions and 2 deletions

View File

@ -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;