summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:07:42 +0100
committerNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:07:42 +0100
commitbfe2dff7ac768d40f7af5f0c2f99c3a1cc5b8db7 (patch)
treeba6c6c03ef8eb6ed20f7f148c98daab5ad5164bb
parent075451f602a8cae0fdf5b39c86d676c35112bbe1 (diff)
[glx] Sort format with non double buffering in first place.
Sort format with non double buffering in first place, most conformant with GLX specification to found the best format for a drawable.
-rw-r--r--src/glx/glitz_glx_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glitz_glx_format.c b/src/glx/glitz_glx_format.c
index c463d33..192758e 100644
--- a/src/glx/glitz_glx_format.c
+++ b/src/glx/glitz_glx_format.c
@@ -71,7 +71,7 @@ _glitz_glx_format_compare (const void *elem1,
score[i] -= 5;
if (format[i]->d.doublebuffer)
- score[i] += 10;
+ score[i] -= 10;
if (format[i]->d.samples > 1)
score[i] -= (20 - format[i]->d.samples);