summaryrefslogtreecommitdiff
path: root/hw/xquartz/GL
diff options
context:
space:
mode:
authorGeorge Peter Staplin <gps@Georges-Workstation.local>2008-10-23 17:40:23 -0600
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-10-23 19:22:16 -0700
commit6a2693b2f9cfdec6f30e2ca4c4176f986f97249e (patch)
tree03f0edd8ace56029aee62f0dd3ce3c1c7b92cbdb /hw/xquartz/GL
parentb015a021b28623b7b734833dc9b8269c41db4e8a (diff)
XQuartz: Remove the enable_stereo default. We now use feature detection to enable stereo visuals.
We need to revisit the GL/indirect.c changes. I think indirect.c should be using the same feature detection and GLX visual config code. The indirect changes will require testing... (cherry picked from commit 49b7a7c6f20ca85d4d624444eb83db2f91344591)
Diffstat (limited to 'hw/xquartz/GL')
-rw-r--r--hw/xquartz/GL/visualConfigs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/xquartz/GL/visualConfigs.c b/hw/xquartz/GL/visualConfigs.c
index e46d628de..a28754206 100644
--- a/hw/xquartz/GL/visualConfigs.c
+++ b/hw/xquartz/GL/visualConfigs.c
@@ -56,8 +56,6 @@
#include "capabilities.h"
#include "visualConfigs.h"
-extern BOOL enable_stereo;
-
/* Based originally on code from indirect.c which was based on code from i830_dri.c. */
void setVisualConfigs(void) {
int numConfigs = 0;
@@ -87,7 +85,7 @@ void setVisualConfigs(void) {
2 iterations for accum (on and off (with an accum color size of 16)).
*/
- numConfigs = ((enable_stereo && caps->stereo) ? 2 : 1) * 2 *
+ numConfigs = (caps->stereo ? 2 : 1) * 2 *
(caps->aux_buffers ? 2 : 1) * (caps->buffers) * 2 * 2;
visualConfigs = xcalloc(sizeof(*visualConfigs), numConfigs);
@@ -107,7 +105,7 @@ void setVisualConfigs(void) {
i = 0; /* current buffer */
- for (stereo = 0; stereo < ((enable_stereo && caps->stereo) ? 2 : 1); ++stereo) {
+ for (stereo = 0; stereo < (caps->stereo ? 2 : 1); ++stereo) {
for (depth = 0; depth < 2; ++depth) {
for (aux = 0; aux < (caps->aux_buffers ? 2 : 1); ++aux) {
for (buffers = 0; buffers < caps->buffers; ++buffers) {