Permalink
Browse files

Fix bug in glop-glx:glx-choose-fb-config.

The list of attributes sent to glxChooseFBConfig() was
requesting a framebuffer supporting both rgb and indexed color as a default.
  • Loading branch information...
1 parent a5109e3 commit 12aa3bccca94843107cdff73be49f5f951f290c1 @patzy patzy committed Jan 22, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/x11/glx.lisp
View
@@ -109,7 +109,7 @@
for value in (cdr attribs) by #'cddr
do (if (eq attr :rgba)
(progn (if value
- (push '(:rgba-bit :color-index-bit) filtered-attribs)
+ (push '(:rgba-bit) filtered-attribs)
(push '(:color-index-bit) filtered-attribs))
(push :render-type filtered-attribs))
(progn (push value filtered-attribs)
@@ -143,7 +143,8 @@
(unless (null-pointer-p vi)
(setf cur-samples
(multiple-value-bind (rtn value)
- (glx-get-fb-config-attrib dpy (mem-aref fb-configs 'fb-config index) :sample-buffers)
+ (glx-get-fb-config-attrib dpy (mem-aref fb-configs 'fb-config index)
+ :sample-buffers)
(declare (ignore rtn)) value))
(when (> cur-samples best-samples)
(setf best-samples cur-samples)

0 comments on commit 12aa3bc

Please sign in to comment.