summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-04-15 10:55:53 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-04-15 10:57:04 -0700
commit5b0faf355465c9f21ad96e0ed266fbdbc29efb5b (patch)
tree6b77b58696e7735c19a9050c4534a9edfd50b352
parentfe7778e58e099d353689755ed2f5aa440569ebe3 (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>
-rw-r--r--hw/xquartz/GL/indirect.c2
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) {