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>
This commit is contained in:
parent
fe7778e58e
commit
5b0faf3554
|
@ -548,7 +548,7 @@ static CGLPixelFormatObj makeFormat(__GLXconfig *conf) {
|
||||||
attr[i++] = conf->samples;
|
attr[i++] = conf->samples;
|
||||||
}
|
}
|
||||||
|
|
||||||
attr[i + 1] = 0;
|
attr[i] = 0;
|
||||||
|
|
||||||
error = CGLChoosePixelFormat(attr, &fobj, &formats);
|
error = CGLChoosePixelFormat(attr, &fobj, &formats);
|
||||||
if(error) {
|
if(error) {
|
||||||
|
|
Loading…
Reference in New Issue