diff options
author | Brian Paul <[email protected]> | 2012-02-20 11:07:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-24 08:03:11 -0700 |
commit | 0a543eb5c4b299a4e819895455913a77a44f52b9 (patch) | |
tree | 0248e2d9cef57c87869d570816c61f135b980ea2 /src/gallium/state_trackers | |
parent | 3ff527fb6860f23795f86e9b85f3f66475796543 (diff) |
st/glx: remove MAX_WIDTH/HEIGHT usage
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 8ad10f1c824..c9cf6c9bb86 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -66,6 +66,9 @@ #define DEFAULT_DIRECT GL_TRUE +/** XXX this could be based on gallium's max texture size */ +#define PBUFFER_MAX_SIZE 16384 + /** * The GLXContext typedef is defined as a pointer to this structure. @@ -2021,13 +2024,13 @@ glXCreatePbuffer(Display *dpy, GLXFBConfig config, const int *attribList) if (width == 0 || height == 0) return 0; - if (width > MAX_WIDTH || height > MAX_HEIGHT) { + if (width > PBUFFER_MAX_SIZE || height > PBUFFER_MAX_SIZE) { /* 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 = PBUFFER_MAX_SIZE; + height = PBUFFER_MAX_SIZE; } } |