XQuartz GLX: Don't let garbage enter our pixel request

https://bugs.freedesktop.org/show_bug.cgi?id=27654

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 5b0faf3554)
This commit is contained in:
Jeremy Huddleston 2010-04-15 10:55:53 -07:00
parent 0dd9d27eaa
commit 8616c5eb75

View File

@ -548,7 +548,7 @@ static CGLPixelFormatObj makeFormat(__GLXconfig *conf) {
attr[i++] = conf->samples;
}
attr[i + 1] = 0;
attr[i] = 0;
error = CGLChoosePixelFormat(attr, &fobj, &formats);
if(error) {