diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-15 10:55:53 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-15 10:57:04 -0700 |
commit | 5b0faf355465c9f21ad96e0ed266fbdbc29efb5b (patch) | |
tree | 6b77b58696e7735c19a9050c4534a9edfd50b352 /hw/xquartz | |
parent | fe7778e58e099d353689755ed2f5aa440569ebe3 (diff) |
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>
Diffstat (limited to 'hw/xquartz')
-rw-r--r-- | hw/xquartz/GL/indirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c index f2af3ffb6..70558ed20 100644 --- a/hw/xquartz/GL/indirect.c +++ b/hw/xquartz/GL/indirect.c @@ -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) { |