fix max buffer size test (Kyle Bateman, bug 912828)
This commit is contained in:
@@ -105,14 +105,8 @@ get_buffer_size( GLframebuffer *buffer, GLuint *width, GLuint *height )
|
||||
unsigned int winwidth, winheight;
|
||||
#ifdef XFree86Server
|
||||
/* XFree86 GLX renderer */
|
||||
if (xmBuffer->frontbuffer->width > MAX_WIDTH ||
|
||||
xmBuffer->frontbuffer->height > MAX_HEIGHT) {
|
||||
winwidth = buffer->Width;
|
||||
winheight = buffer->Height;
|
||||
} else {
|
||||
winwidth = xmBuffer->frontbuffer->width;
|
||||
winheight = xmBuffer->frontbuffer->height;
|
||||
}
|
||||
winwidth = MIN2(xmBuffer->frontbuffer->width, MAX_WIDTH);
|
||||
winheight = MIN2(xmBuffer->frontbuffer->height, MAX_HEIGHT);
|
||||
#else
|
||||
Window root;
|
||||
int winx, winy;
|
||||
|
||||
Reference in New Issue
Block a user