driconf: add a miscellaneous section and always_have_depth_buffer option
authorBrian Paul <brianp@vmware.com>
Thu, 14 Mar 2013 02:19:44 +0000 (20:19 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Mar 2013 13:04:13 +0000 (07:04 -0600)
This option is needed for some applications that neglect to request
a depth buffer when choosing a visual/fbconfig.

The Linux app Topogun is an example of this problem.

src/mesa/drivers/dri/common/xmlpool/t_options.h

index d982d3ba7c77af5cdda0828e27011a49aa3b144b..1e7eced06bd0951780b993ca9dc11fbf29c3cb8f 100644 (file)
@@ -301,3 +301,17 @@ DRI_CONF_SECTION_BEGIN \
 DRI_CONF_OPT_BEGIN(arb_vertex_program,bool,def) \
         DRI_CONF_DESC(en,gettext("Enable extension GL_ARB_vertex_program")) \
 DRI_CONF_OPT_END
+
+
+
+/**
+ * \brief Miscellaneous configuration options
+ */
+#define DRI_CONF_SECTION_MISCELLANEOUS \
+DRI_CONF_SECTION_BEGIN \
+        DRI_CONF_DESC(en,gettext("Miscellaneous"))
+
+#define DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER(def) \
+DRI_CONF_OPT_BEGIN(always_have_depth_buffer, bool, def) \
+        DRI_CONF_DESC(en,gettext("Create all visuals with a depth buffer")) \
+DRI_CONF_OPT_END