From: Brian Paul Date: Mon, 20 Feb 2012 18:07:00 +0000 (-0700) Subject: xlib: use SWRAST_MAX_WIDTH/HEIGHT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f8a61ffa256b4fe36e93a0904b8893c805eb313;p=mesa.git xlib: use SWRAST_MAX_WIDTH/HEIGHT --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 916296d1972..2ff9e7ea6b4 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -2220,13 +2220,13 @@ Fake_glXCreatePbuffer( Display *dpy, GLXFBConfig config, if (width == 0 || height == 0) return 0; - if (width > MAX_WIDTH || height > MAX_HEIGHT) { + if (width > SWRAST_MAX_WIDTH || height > SWRAST_MAX_HEIGHT) { /* If allocation would have failed and GLX_LARGEST_PBUFFER is set, * allocate the largest possible buffer. */ if (useLargest) { - width = MAX_WIDTH; - height = MAX_HEIGHT; + width = SWRAST_MAX_WIDTH; + height = SWRAST_MAX_HEIGHT; } }