summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:04:02 +0100
committerNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:04:02 +0100
commit778e62a6940b3569645d6b36517b063f3e43f035 (patch)
tree4397975357e79d500fdfd10b9e9aac6563a08c60
parent363b2a0e9f8a0fe7e4a9b960168eaea61afb037b (diff)
[glx] Sort format with lower depth_size in first place.
Sort depth size in first place to be most conformant with GLX specification to choose the best format.
-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 c9e83ca..c463d33 100644
--- a/src/glx/glitz_glx_format.c
+++ b/src/glx/glitz_glx_format.c
@@ -68,7 +68,7 @@ _glitz_glx_format_compare (const void *elem1,
score[i] += 5;
if (format[i]->d.depth_size)
- score[i] += 5;
+ score[i] -= 5;
if (format[i]->d.doublebuffer)
score[i] += 10;