projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d88ef
)
xlib: use SWRAST_MAX_WIDTH/HEIGHT
author
Brian Paul
<brianp@vmware.com>
Mon, 20 Feb 2012 18:07:00 +0000
(11:07 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 24 Feb 2012 15:03:08 +0000
(08:03 -0700)
src/mesa/drivers/x11/fakeglx.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/fakeglx.c
b/src/mesa/drivers/x11/fakeglx.c
index 916296d1972822dc6c3e0bbda354d90e00a0c857..2ff9e7ea6b46b89aaeaecbe12b937780d19a2c8e 100644
(file)
--- 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;
}
}