summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-10-26 19:26:18 +0000
committerBrian Paul <[email protected]>2000-10-26 19:26:18 +0000
commit66202b75d561b2275022bea8b5936a7482c1c315 (patch)
tree7fbcec31b21eae9f1d17ae571c1cac1771eb172e /src
parent7ceffd0e0d52da8b0396b795e7e1395a7a8e3424 (diff)
clarified meaning of DEFAULT_SOFTWARE_DEPTH_BITS value
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/config.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index 5526233edd7..7e263630134 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -1,4 +1,4 @@
-/* $Id: config.h,v 1.18 2000/10/18 15:02:59 brianp Exp $ */
+/* $Id: config.h,v 1.19 2000/10/26 19:26:18 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -139,11 +139,16 @@
/*
- * Bits per depth buffer value: 16 or 32 (GLushort or GLuint)
- * _mesa_create_visual() can specify any depth in [0, 32].
+ * Bits per depth buffer value. Any reasonable value up to 31 will
+ * work. 32 doesn't work because of integer overflow problems in the
+ * rasterizer code.
*/
#define DEFAULT_SOFTWARE_DEPTH_BITS 16
+#if DEFAULT_SOFTWARE_DEPTH_BITS <= 16
#define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort
+#else
+#define DEFAULT_SOFTWARE_DEPTH_TYPE GLuint
+#endif